namespace anychart.math.mma Improve this Doc
Namespace anychart.math.mma
Learn more about indicator mathematics.
Functions Overview
calculationFunction() | Calculates MMA. |
createComputer() | Creates a MMA computer for the given table mapping. |
initContext() | Creates a context for MMA indicator calculation. |
startFunction() | Start calculation function for MMA indicator calculation. |
Typedefs Overview
anychart.math.mma.Context | Type definition for the context. |
Functions Description
calculationFunction
Calculates MMA.
Params:
Name | Type | Description |
---|---|---|
row | anychart.data.TableComputer.RowProxy | Row proxy. |
context | anychart.math.mma.Context | Context. |
Try it:
createComputer
Creates a MMA 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 MMA indicator calculation.
Params:
Name | Type | Default | Description |
---|---|---|---|
period | number | 20 | Indicator period. |
Returns:
anychart.math.mma.Context - Context.Try it:
startFunction
Start calculation function for MMA indicator calculation.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.mma.Context | Context. |
Try it: