AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.momentum Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

Momentum calculation.

Params:

NameTypeDescription
contextanychart.math.momentum.ContextMomentum Context.
closenumberClose value.

Returns:

number - The calculated Momentum indicator value.

calculationFunction

createComputer

Creates Momentum computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
periodnumber
14
Indicator period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for Momentum indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
14
Indicator period.

startFunction

Start calculation function for Momentum indicator calculation.

Params:

NameTypeDescription
contextanychart.math.momentum.ContextContext.