namespace anychart.math.ao Improve this Doc
Namespace anychart.math.ao
Learn more about indicator mathematics.
Functions Overview
| calculate() | AO calculation. |
| calculationFunction() | Calculates AO. |
| createComputer() | Creates a AO computer for the given table mapping. |
| initContext() | Creates context for AO indicator calculation |
| startFunction() | Start calculation function for AO indicator calculation |
Typedefs Overview
| anychart.math.ao.Context | Type definition for the context. |
Functions Description
calculate
AO calculation.
Params:
| Name | Type | Description |
|---|---|---|
| context | anychart.math.ao.Context | AO context. |
| high | number | High value. |
| low | number | Low value. |
Returns:
number - The calculated AO indicator value.calculationFunction
Calculates AO.
Params:
| Name | Type | Description |
|---|---|---|
| row | anychart.data.TableComputer.RowProxy | Row proxy. |
| context | anychart.math.ao.Context | Context. |
Try it:
createComputer
Creates a AO computer for the given table mapping.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| fastPeriod | number | 5 | Indicator fast period. |
| slowPeriod | number | 34 | Indicator slow period. |
| maType | string | 'sma' | Indicator smoothing type. |
Returns:
anychart.data.TableComputer - Table computer.Try it:
initContext
Creates context for AO indicator calculation
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| fastPeriod | number | 5 | Indicator fast period. |
| slowPeriod | number | 34 | Indicator slow period. |
| maType | string | 'sma' | Indicator smoothing type. |
Returns:
anychart.math.ao.Context - Dispose function.Try it:
startFunction
Start calculation function for AO indicator calculation
Params:
| Name | Type | Description |
|---|---|---|
| context | anychart.math.ao.Context | Context. |
Try it:
