Calculates the Commodity Channel Index indicator on data, stored in array, and returns its value.
Indicators.CCIOnArray(series:Array, total:int, period:int)
Parameters
Name |
Type |
Действие |
Значение по умолчанию |
series |
Array |
Array with data. |
— |
total |
int |
The number of items to be counted. 0 means the whole array. |
— |
period |
int |
Averaging period to calculate the main line. |
— |
Return value
Numerical values of the Commodity Channel Index indicator, calculated on data, stored in array[].
Example
let list = Indicator.CCIOnArray(ExtBuffer, total, 12, 0);