AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.volumeMA Improve this Doc

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

Functions Overview

calculate()Calculates Moving Average over Volume.
calculationFunction()Calculates Volume+MA.
createComputer()Creates Volume + MA computer for the given table mapping.
initContext()Creates context for Volume+MA indicator calculation.
startFunction()Start calculation function for Volume+MA indicator calculation.

Typedefs Overview

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

Functions Description

calculate

Calculates Moving Average over Volume.

Params:

NameTypeDescription
contextanychart.math.volumeMA.ContextContext.
volumenumberVolume value.

Returns:

Array.<number> - An array of the calculated Volume + MA indicator values.

calculationFunction

createComputer

Creates Volume + MA computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
maPeriodnumber
20
Moving Average period.
maTypeanychart.enums.MovingAverageType
'sma'
Indicator smoothing type.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for Volume+MA indicator calculation.

Params:

NameTypeDefaultDescription
maPeriodnumber
20
MA period.
maTypestring | anychart.enums.MovingAverageType
'sma'
Indicator smoothing type.

startFunction

Start calculation function for Volume+MA indicator calculation.

Params:

NameTypeDescription
contextanychart.math.volumeMA.ContextContext.