//+------------------------------------------------------------------+ //| 10 Minute trader | //+------------------------------------------------------------------+ #property copyright "Ron T" #property link "http://www.lightpatch.com" #property indicator_chart_window #property indicator_buffers 7 #property indicator_color1 HotPink // arrow up #property indicator_color2 HotPink // arrow down #property indicator_color3 Aqua #property indicator_color4 Red #property indicator_color5 White #property indicator_color6 HotPink #property indicator_color7 LimeGreen //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; double ExtMapBuffer4[]; double ExtMapBuffer5[]; double ExtMapBuffer6[]; double ExtMapBuffer7[]; // User Input //+------------------------------------------------------------------+ //| Custom indicator initialization function | //|------------------------------------------------------------------| int init() { // 233 up arrow // 234 down arrow // 159 big dot // 168 open square SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0, ExtMapBuffer1); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1, ExtMapBuffer2); return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { int i; for( i=0; i=0) { if (prevday <> DayOfWeek[pos] ) { prevday=DayOfWeek[pos]; endpos=pos+1; for (i=startpos, i++, i<=endpos) { ExtMapBuffer1[i]=maxhigh; ExtMapBuffer2[i]=maxlow; } startpos=pos ; // reset maxlow and maxhigh maxlow=999; maxhigh=0; } if (High[pos]maxlow) maxlow=Low[pos]; pos--; } return(0); } //+------------------------------------------------------------------+