Top
You are looking at an outdated 7.14.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

namespace anychart.math.ama Improve this Doc

Namespace anychart.math.ama
Learn more about indicator mathematics.

Functions Overview

calculationFunction()Calculates AMA.
createComputer()Creates an AMA computer for the given table mapping.
initContext()Creates a context for AMA indicator calculation.
startFunction()Start calculation function for AMA indicator calculation.

Typedefs Overview

anychart.math.ama.ContextType definition for the context.

Functions Description

calculationFunction

Calculates AMA.

Params:

Name Type Description
row anychart.data.TableComputer.RowProxy Row proxy.
context anychart.math.ama.Context Context.

Try it:

createComputer

Creates an AMA computer for the given table mapping.

Params:

Name Type Description
mapping anychart.data.TableMapping Data mapping.
period number Indicator period.
fastPeriod number Fast indicator period.
slowPeriod number Slow indicator period.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates a context for AMA indicator calculation.

Params:

Name Type Default Description
period number
20
Indicator period.
fastPeriod number
2
Fast indicator period.
slowPeriod number
30
Slow indicator period.

Returns:

anychart.math.ama.Context - Context.

Try it:

startFunction

Start calculation function for AMA indicator calculation.

Params:

Name Type Description
context anychart.math.ama.Context Context.

Try it: