MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Technical indicators  iRVI

 
double iRVI( string symbol, int timeframe, int period, int mode, int shift)
Calculates the Relative Vigor index and returns its value.
Parameters:
symbol   -   Symbol the data of which should be used to calculate indicator. NULL means the current symbol.
timeframe   -   Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
period   -   Number of periods for calculation.
mode   -   Indicator line index. It can be any of Indicators line identifiers enumeration value.
shift   -   Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Sample:
  double val=iRVI(NULL, 0, 10,MODE_MAIN,0);