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.Context | Type definition for the context. |
Functions Description
calculate
Calculates Coppock Curve.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.coppockCurve.Context | Context. |
value | number | Value. |
Returns:
number - Calculated value for indicator.Try it:
calculationFunction
Organizes Coppock Curve calculation.
Params:
Name | Type | Description |
---|---|---|
row | anychart.data.TableComputer.RowProxy | Row proxy. |
context | anychart.math.coppockCurve.Context | Context. |
Try it:
createComputer
Creates a Coppock Curve computer for the given table mapping.
Params:
Name | Type | Default | Description |
---|---|---|---|
mapping | anychart.data.TableMapping | Data mapping. | |
wmaPeriod | number | 10 | WMA calculation period. |
firstRocPeriod | number | 11 | The first RoC calculation period. |
secondRocPeriod | number | 14 | The second RoC calculation period. |
Returns:
anychart.data.TableComputer - Table computer.Try it:
initContext
Creates a context for Coppock Curve indicator calculation.
Params:
Name | Type | Default | Description |
---|---|---|---|
wmaPeriod | number | 10 | WMA calculation period. |
firstRocPeriod | number | 11 | The first RoC calculation period. |
secondRocPeriod | number | 14 | The second RoC calculation period. |
Returns:
anychart.math.coppockCurve.Context - Context.Try it:
startFunction
Start calculation function for Coppock Curve indicator calculation.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.coppockCurve.Context | Context. |
Try it: