AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.coppockCurve Improve this Doc

Namespace anychart.math.coppockCurve
Learn more about indicator mathematics.

Functions Overview

calculate()Calculates Coppock Curve.
calculationFunction()Organizes Coppock Curve calculation.
createComputer()Creates a Coppock Curve computer for the given table mapping.
initContext()Creates a context for Coppock Curve indicator calculation.
startFunction()Start calculation function for Coppock Curve indicator calculation.

Typedefs Overview

anychart.math.coppockCurve.ContextType definition for the context.

Functions Description

calculate

Calculates Coppock Curve.

Params:

NameTypeDescription
contextanychart.math.coppockCurve.ContextContext.
valuenumberValue.

Returns:

number - Calculated value for indicator.

calculationFunction

Organizes Coppock Curve calculation.

Params:

NameTypeDescription
rowanychart.data.TableComputer.RowProxyRow proxy.
contextanychart.math.coppockCurve.ContextContext.

createComputer

Creates a Coppock Curve computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
wmaPeriodnumber
10
WMA calculation period.
firstRocPeriodnumber
11
The first RoC calculation period.
secondRocPeriodnumber
14
The second RoC calculation period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for Coppock Curve indicator calculation.

Params:

NameTypeDefaultDescription
wmaPeriodnumber
10
WMA calculation period.
firstRocPeriodnumber
11
The first RoC calculation period.
secondRocPeriodnumber
14
The second RoC calculation period.

startFunction

Start calculation function for Coppock Curve indicator calculation.

Params:

NameTypeDescription
contextanychart.math.coppockCurve.ContextContext.