RAVI Indicator - RAVI (Rapid Adaptive Variance Indicator)

Profesional Forex Market Indicator

Profesional Forex Market Indicator
RAVI
Profesional Forex Market Indicator
RAVI
Profesional Forex Market Indicator
RAVI
Profesional Forex Market Indicator
RAVI





The RAVI indicator (Rapid Adaptive Variance Indicator) differentiates between a trending market and a trading market. Although the RAVI measures the trend intensity, it does not distinguish which way the trend is going. Tushar Chande recommends - plus-minus 0.3% (0.1% - depending on the market). There is a belief that the up trend began if the indicator crosses the upper information line bottom-up. And there is also a belief that the down trend began if the indicator crosses the lower information line from top downward. The trend is considered as continuing as long as the RAVI line grows. The down trend - as long as the RAVI line falls. If the indicator turns back to the zero line it means that the trend is over and the channel has began. But if the indicator turns back again not passing between the information lines it means that the trend has resumed.
"The higher the RAVI, the greater the trend intensity and the stronger the underlying trend."

Matematik Formula:











RAVI Indicator - RAVI MQ4 Code Base (Copy Code)
//+------------------------------------------------------------------+
//|                                                         RAVI.mq4 |
//|                      Copyright © 2005, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"
//----
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Red
//---- indicator parameters 
extern int Period1=7;
extern int Period2=65;
//---- buffers 
double ExtBuffer[];
//+------------------------------------------------------------------+ 
//| Custom indicator initialization function                         | 
//+------------------------------------------------------------------+ 
int init()
  {
//---- indicators 
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtBuffer);
   IndicatorShortName("RAVI (" + Period1+ ","+Period2+")");
//---- 
   return(0);
  }
//+------------------------------------------------------------------+ 
//| Custor indicator deinitialization function                       | 
//+------------------------------------------------------------------+ 
int deinit()
  {
//---- TODO: add your code here 
//---- 
   return(0);
  }
//+------------------------------------------------------------------+ 
//| Custom indicator iteration function                              | 
//+------------------------------------------------------------------+ 
int start()
  {
   int    counted_bars=IndicatorCounted();
   int i=0;
   double SMA1,SMA2,result;
//---- TODO: add your code here 
   for(i=0;i<Bars;i++)
     {
      SMA1=iMA(NULL,0,Period1,0,MODE_SMA,PRICE_CLOSE,i);
      SMA2=iMA(NULL,0,Period2,0,MODE_SMA,PRICE_CLOSE,i);
      result=((SMA1-SMA2)/SMA2)*100;
      ExtBuffer[i]=result;
     }
//---- 
   return(0);
  }
//+------------------------------------------------------------------+