AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.mma Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculationFunction

Calculates MMA.

Params:

NameTypeDescription
rowanychart.data.TableComputer.RowProxyRow proxy.
contextanychart.math.mma.ContextContext.

createComputer

Creates a MMA computer for the given table mapping.

Params:

NameTypeDescription
mappinganychart.data.TableMappingData mapping.
periodnumberIndicator period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for MMA indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.

Returns:

anychart.math.mma.Context - Context.

startFunction

Start calculation function for MMA indicator calculation.

Params:

NameTypeDescription
contextanychart.math.mma.ContextContext.