Waddah Attar Reverse RSI

Author: Waddah Attar
Waddah Attar Reverse RSI
Indicators Used
Relative strength index
Miscellaneous
Implements a curve of type %1
0 Views
0 Downloads
0 Favorites
Waddah Attar Reverse RSI
#property copyright "Waddah Attar"
#property link      "waddahattar@hotmail.com"
//----
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 DarkOrange
#property indicator_maximum 100
#property indicator_minimum 0
#property indicator_level1 30
#property indicator_level2 70
#property indicator_level3 50


extern int RSIPeriod=14;
extern int RSIPrice=0;
//----
double Idx1[];

int init()
  {
   SetIndexStyle(0, DRAW_LINE, 0, 1);
   SetIndexBuffer(0, Idx1);
   return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void start()
{
  for(int i = 0; i <= Bars; i++)
  {
    Idx1[i]=(100-iRSI(NULL,0,RSIPeriod,RSIPrice,i));
  }
}


Comments