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