Docs

ta.mom

Measure momentum as the price change over the last n bars.

itm
ta.mom(source, length)

Momentum: source - source[length]. Identical to ta.change with an explicit length, kept because authors reach for the name.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeDefaultRangeDescription
sourceSeriesnumber--The series to read.
lengthConstantnumber-1 to 10000Window in observed bars.

Output

NameType
valuenumber

Warm-up and missing values

Warm-up
length bars. Names in the warm-up are this operator’s parameters.
Missing values
na until length bars of history exist, and na when either observation is na.

Example

itm
ta.mom(close, 10)
itm
plot(ta.mom(close, 10), "Momentum 10")