iRVI need help

 

Hi,

 I am trying to use the Relative Vigor Index Indictaor in my EA

 

rviHandle=iRVI(NULL,0,10);

CopyBuffer(rviHandle,0,0,3,rviVal)<0

 

I only get the RVI main value in the array.  How do i get the RVI signal value??

 

Thanks 

Relative Vigor Index (RVI)
  • votes: 7
  • 2010.01.26
  • MetaQuotes Software Corp. | English Russian Chinese Spanish Portuguese
  • www.mql5.com
The main point of the Relative Vigor Index Indicator (RVI) is that on the bull market the closing price is, as a rule, higher, than the opening price.
 
B_A_Z:

Hi,

 I am trying to use the Relative Vigor Index Indictaor in my EA

 

rviHandle=iRVI(NULL,0,10);

CopyBuffer(rviHandle,0,0,3,rviVal)<0

 

I only get the RVI main value in the array.  How do i get the RVI signal value??

 

Thanks 

 //------------------------------------------------------------

You have an example on the "MQL5 Reference".

The number of the indicator buffer must be 1.

That is, if(  CopyBuffer( rviHandle, 1, 0, 3, rviVal) > 0) { //that's good! you got the signal value... }

 

I am able to get the signal value  using CopyBuffer( rviHandle, 1, 0, 3, rviVal) 

Thanks JMRodsMartins 

Documentation on MQL5: Timeseries and Indicators Access / CopyBuffer
  • www.mql5.com
Timeseries and Indicators Access / CopyBuffer - Documentation on MQL5
Reason: