Calculates the Accumulation/Distribution indicator and returns its value.
await Indicators.AD(symbol:string, timeframe:string, priceType: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. |
— |
priceType |
int |
Price type |
— |
Return value
Numerical values of the Accumulation/Distribution indicator.
Example
let listAD = await Indicator.AD(Current.Symbol, Current.TimeFrame, PriceType.Bid);