Calculates the Bollinger Bands indicator and returns its value.
await Indicators.Bands(symbol:string, timeframe:string, period:int, deviations:float, bandsShift:int, appliedPrice:int, priceType:int, 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. |
— |
period |
int |
Averaging period. |
— |
deviations |
float |
Number of standard deviations from the main line. |
— |
bandsShift |
int |
The indicator shift relative to the chart. |
— |
appliedPrice |
int |
Applied price. It can be any of AppliedPrice enumeration values. |
— |
priceType |
int |
Price type |
— |
mode |
int |
Indicator line index. It can be any of the Indicators line identifiers enumeration value (0 - IndicatorLine.Main, 1 - IndicatorLine.Upper, 2 - IndicatorLine.Lower). |
— |
Return value
Numerical values of the Bollinger Bands indicator.
Example
let listBands = await Indicators.Bands(null, 0, 20, 2, 0, AppliedPrice.Low, IndicatorLine.Lower, PriceType.Bid);