計算布林帶指標並返回其值。
await Indicators.Bands(symbol:string, timeframe:string, period:int, deviations:float, bandsShift:int, appliedPrice:int, priceType:int, mode:int)
Parameters
| Name |
Type |
Действие |
Значение по умолчанию |
| symbol |
string |
將計算指標的數據上的交易品種名稱。 null 表示當前符號。 |
— |
| timeframe |
string |
大體時間。 它可以是任何 TimeFrame 枚舉值。 0 表示當前圖表時間範圍。 |
— |
| period |
int |
平均週期。 |
— |
| deviations |
float |
與主線的標準差數。 |
— |
| bandsShift |
int |
指標相對於圖表移動。 |
— |
| appliedPrice |
int |
適用價格。 它可以是任何 AppliedPrice 枚舉值。 |
— |
| priceType |
int |
Price type |
— |
| mode |
int |
指標線索引。 可以是任何 Indicators line 標識符枚舉值 (0 - IndicatorLine.Main, 1 - IndicatorLine.Upper, 2 - IndicatorLine.Lower). |
— |
Example
let listBands = await Indicators.Bands(null, 0, 20, 2, 0, AppliedPrice.Low, IndicatorLine.Lower, PriceType.Bid);