Indicators.EnvelopesOnArray()

Calculates the Envelopes indicator on data, stored in array, and returns its value.
Indicators.EnvelopesOnArray(series:Array, total:int, maPeriod:int, maMethod:int, maShift:int, deviation:float, mode:int)

Parameters

Name Type Действие Значение по умолчанию
series Array Array with data.
total int The number of items to be counted. 0 means the whole array.
maPeriod int Averaging period for calculation of the main line.
maMethod int Moving Average method. It can be any of Averaging enumeration values.
maShift int MA shift. Indicator line offset relate to the chart by timeframe.
deviation float Percent deviation from the main line.
mode int Indicator line index. It can be any of Indicators line identifiers enumeration value IndicatorLine

Return value

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

Example

let list = Indicator.EnvelopesOnArray(ExtBuffer,10,13,Averaging.Simple,0,0.2,IndicatorLine.Upper);