namespace anychart.math.volumeMA Improve this Doc
Namespace anychart.math.volumeMA
Learn more about indicator mathematics.
Functions Overview
calculate() | Calculates Moving Average over Volume. |
calculationFunction() | Calculates Volume+MA. |
createComputer() | Creates Volume + MA computer for the given table mapping. |
initContext() | Creates context for Volume+MA indicator calculation. |
startFunction() | Start calculation function for Volume+MA indicator calculation. |
Typedefs Overview
anychart.math.volumeMA.Context | Type definition for the context. |
Functions Description
calculate
Calculates Moving Average over Volume.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.volumeMA.Context | Context. |
volume | number | Volume value. |
Returns:
Array.<number> - An array of the calculated Volume + MA indicator values.calculationFunction
Calculates Volume+MA.
Params:
Name | Type | Description |
---|---|---|
row | anychart.data.TableComputer.RowProxy | Row proxy. |
context | anychart.math.volumeMA.Context | Context. |
Try it:
createComputer
Creates Volume + MA computer for the given table mapping.
Params:
Name | Type | Default | Description |
---|---|---|---|
mapping | anychart.data.TableMapping | Data mapping. | |
maPeriod | number | 20 | Moving Average period. |
maType | anychart.enums.MovingAverageType | 'sma' | Indicator smoothing type. |
Returns:
anychart.data.TableComputer - Table computer.Try it:
initContext
Creates context for Volume+MA indicator calculation.
Params:
Name | Type | Default | Description |
---|---|---|---|
maPeriod | number | 20 | MA period. |
maType | string | anychart.enums.MovingAverageType | 'sma' | Indicator smoothing type. |
Returns:
anychart.math.volumeMA.Context - Context.Try it:
startFunction
Start calculation function for Volume+MA indicator calculation.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.volumeMA.Context | Context. |
Try it: