iMomentum

Calculates the Momentum indicator value for any symbol and timeframe.

Syntax

iMomentum(
symbol: string,
timeframe: number,
index: number,
period: number,
applyToPrice: TPriceType
): number

Parameters

Parameter
Type
Description

symbol

string

Symbol name

timeframe

number

Timeframe in minutes

index

number

Index of the bar to calculate Momentum for

period

number

Momentum calculation period (typically 14)

applyToPrice

TPriceType

Type of price to use (Open, High, Low, Close, etc.)

Return Value

Returns a number representing the Momentum value at the specified bar index.

Description

Calculates the Momentum indicator.

Example

Last updated