namespace anychart.math.roc Improve this Doc
Namespace anychart.math.roc
Learn more about indicator mathematics.
Functions Overview
calculate() | RoC calculation. |
calculationFunction() | Organizes RoC calculation. |
createComputer() | Creates a RoC computer for the given table mapping. |
initContext() | Creates a context for RoC indicator calculation. |
startFunction() | Start calculation function for RoC indicator calculation. |
Typedefs Overview
anychart.math.roc.Context | Type definition for the context. |
Functions Description
calculate
RoC calculation.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.roc.Context | RoC context. |
value | number | Value. |
Returns:
number - The calculated RoC indicator value.calculationFunction
Organizes RoC calculation.
Params:
Name | Type | Description |
---|---|---|
row | anychart.data.TableComputer.RowProxy | Row proxy. |
context | anychart.math.roc.Context | Context. |
Try it:
createComputer
Creates a RoC computer for the given table mapping.
Params:
Name | Type | Description |
---|---|---|
mapping | anychart.data.TableMapping | Data mapping. |
period | number | Indicator period. |
Returns:
anychart.data.TableComputer - Table computer.Try it:
initContext
Creates a context for RoC indicator calculation.
Params:
Name | Type | Default | Description |
---|---|---|---|
period | number | 20 | Indicator period. |
Returns:
anychart.math.roc.Context - Context.Try it:
startFunction
Start calculation function for RoC indicator calculation.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.roc.Context | Context. |
Try it: