AnyChart
API Reference
Still have questions?
Contact support
Top

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.ContextType definition for the context.

Functions Description

calculate

AO calculation.

Params:

NameTypeDescription
contextanychart.math.ao.ContextAO context.
highnumberHigh value.
lownumberLow value.

Returns:

number - The calculated AO indicator value.

calculationFunction

createComputer

Creates a AO computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
fastPeriodnumber
5
Indicator fast period.
slowPeriodnumber
34
Indicator slow period.
maTypestring
'sma'
Indicator smoothing type.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for AO indicator calculation

Params:

NameTypeDefaultDescription
fastPeriodnumber
5
Indicator fast period.
slowPeriodnumber
34
Indicator slow period.
maTypestring
'sma'
Indicator smoothing type.

Returns:

anychart.math.ao.Context - Dispose function.

startFunction

Start calculation function for AO indicator calculation

Params:

NameTypeDescription
contextanychart.math.ao.ContextContext.