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:

Name Type Description
context anychart.math.momentum.Context Momentum Context.
close number Close value.

Returns:

number - The calculated Momentum indicator value.

calculationFunction

Calculates Momentum.

Params:

Name Type Description
row anychart.data.TableComputer.RowProxy Row proxy.
context anychart.math.momentum.Context Context.

Try it:

createComputer

Creates Momentum computer for the given table mapping.

Params:

Name Type Default Description
mapping anychart.data.TableMapping
Data mapping.
period number
14
Indicator period.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates context for Momentum indicator calculation.

Params:

Name Type Default Description
period number
14
Indicator period.

Returns:

anychart.math.momentum.Context - Context.

Try it:

startFunction

Start calculation function for Momentum indicator calculation.

Params:

Name Type Description
context anychart.math.momentum.Context Context.

Try it: