Indicators.MomentumOnArray()

Calculates the Momentum indicator on data, stored in array, and returns its value.
Indicators.MomentumOnArray(prices:Array, total:int, period:int)

Parameters

Name Type Действие Значение по умолчанию
prices Array Array with data.
total int The number of items to be counted. 0 means the whole array.
period int Averaging period (amount of bars) for calculation of price changes.

Return value

Numerical values of the Momentum indicator, calculated on data, stored in array[].

Example

let list = await Indicator.MomentumOnArray(mybuffer, 100, 12);