Calculates the Relative Vigor Index indicator and returns its value.
await Indicators.RVI(symbol:string, timeframe:string, period: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 for calculation. |
— |
priceType |
int |
Price type |
— |
mode |
int |
Indicator line index. It can be any of Indicators line identifiers enumeration value. |
— |
Return value
Numerical values of the Relative Vigor Index indicator.
Example
let list = await Indicator.RVI(null, 0, 10, PriceType.Bid, IndicatorLine.Main);