AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 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

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.