Calculates the Envelopes indicator and returns its value.
await Indicators.Envelopes(symbol:string, timeframe:string, maPeriod:int, maMethod:int, maShift:int, appliedPrice:int, priceType:int, deviation:float, mode:int)
Parameters
Name |
Type |
Действие |
Значение по умолчанию |
symbol |
string |
Symbol name on the data of which the indicator will be calculated. null means the current symbol. |
— |
timeframe |
string |
TimeFrame. It can be any of TimeFrame enumeration values. 0 means the current chart timeframe. |
— |
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. |
— |
appliedPrice |
int |
Applied price. It can be any of AppliedPrice enumeration values. |
— |
priceType |
int |
Price type |
— |
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.
Example
let list = await Indicator.Envelopes(null, 0, 13, Averaging.Simple, 10, AppliedPrice.Close, PriceType.Bid, 0.2, IndicatorLine.Upper);