//+------------------------------------------------------------------+ //| GG-RSI-CCI.mq4 | //| Copyright © 2009, GGekko | //| http://www.fx-ggekko.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2009, GGekko" #property link "http://www.fx-ggekko.com" //---- indicator settings #property indicator_separate_window #property indicator_buffers 8 #property indicator_color1 Red #property indicator_color2 Gold #property indicator_color3 OrangeRed #property indicator_color4 Pink #property indicator_color5 Blue #property indicator_color6 Blue #property indicator_color7 Purple #property indicator_color8 Silver #property indicator_width1 10 #property indicator_width2 2 #property indicator_width3 2 #property indicator_width4 2 #property indicator_width5 2 #property indicator_width6 2 #property indicator_width7 2 #property indicator_width8 2 #property indicator_minimum 0 #property indicator_maximum 2 //---- indicator parameters //---- indicator buffers double BufferUp[]; double BufferFlat[]; double A[]; double B[]; double AlertBuffer[]; double BufferC[]; double BufferD[]; double ind4[]; double ind5[]; double ind6[]; double ExtMapBuffer1[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- drawing settings IndicatorBuffers(8); SetIndexStyle(0,DRAW_HISTOGRAM); SetIndexStyle(1,DRAW_HISTOGRAM); SetIndexStyle(2,DRAW_HISTOGRAM); SetIndexStyle(3,DRAW_HISTOGRAM); SetIndexStyle(4,DRAW_HISTOGRAM); SetIndexStyle(5,DRAW_ARROW); SetIndexArrow(5,159); SetIndexStyle(6,DRAW_ARROW); SetIndexArrow(6,159); SetIndexStyle(7,DRAW_ARROW); SetIndexArrow(7,159); //---- indicator buffers mapping SetIndexBuffer(0,BufferUp); SetIndexBuffer(1,BufferD); SetIndexBuffer(2,AlertBuffer); SetIndexBuffer(3,BufferFlat); SetIndexBuffer(4,A); SetIndexBuffer(5,ExtMapBuffer1); SetIndexBuffer(6,B); SetIndexBuffer(7,BufferC); //---- name for DataWindow and indicator subwindow label //---- initialization done return(0); } int start() { int limit; int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted if(counted_bars>0) counted_bars++; limit=Bars; //---- for(int i=limit; i>=0; i--) { int grount; grount++; BufferD[i]=grount; } //---- done //---- done return(0); } //+------------------------------------------------------------------+