top of page

MQL4 Reference / Technical Indicators / iMA

​

iRVI

Calculates the Relative Vigor Index indicator and returns its value.

double  iRVI(
  string       symbol,           // symbol
  int          timeframe,        // timeframe
  int          period,           // averaging period
  int          mode,             // line index
  int          shift             // shift
  );

​

Parameters

*symbol

[in]  Symbol name on the data of which the indicator will be calculated. NULL means the current symbol.

*timeframe

[in]  Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe.

*period

[in]  Averaging period for calculation.

*mode

[in]  Indicator line index. It can be any of Indicators line identifiers enumeration value.

*shift

[in]  Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).

*Returned value

Numerical value of the Relative Vigor Index indicator.

 

*Example:

  double val=iRVI(NULL,0,10,MODE_MAIN,0);

​

​

​

Page 1 of 3

bottom of page