AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.wma Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

WMA calculation.

Params:

NameTypeDescription
contextanychart.math.wma.ContextWMA context.
valuenumberValue.

Returns:

number - The calculated WMA indicator value.

calculationFunction

createComputer

Creates an WMA 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 WMA indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
9
Indicator period.

Returns:

anychart.math.wma.Context - Context.

startFunction

Start calculation function for WMA indicator calculation.

Params:

NameTypeDescription
contextanychart.math.wma.ContextContext.