AnyChart
API Reference
Still have questions?
Contact support
Top

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

createComputer

Creates an AMA computer for the given table mapping.

Params:

NameTypeDescription
mappinganychart.data.TableMappingData mapping.
periodnumberIndicator period.
fastPeriodnumberFast indicator period.
slowPeriodnumberSlow indicator period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for AMA indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.
fastPeriodnumber
2
Fast indicator period.
slowPeriodnumber
30
Slow indicator period.

Returns:

anychart.math.ama.Context - Context.

startFunction

Start calculation function for AMA indicator calculation.

Params:

NameTypeDescription
contextanychart.math.ama.ContextContext.