//+------------------------------------------------------------------+ //| MultiMovingAverage.mq4 | //+------------------------------------------------------------------+ #property copyright "Ron T" #property link "http://www.lightpatch.com" #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Red #property indicator_color2 White #property indicator_color3 DeepSkyBlue //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //|------------------------------------------------------------------| int init() { SetIndexStyle(0,DRAW_ARROW); SetIndexBuffer(0, ExtMapBuffer1); SetIndexArrow(0,234); //down red SetIndexStyle(1,DRAW_ARROW); SetIndexBuffer(1, ExtMapBuffer2); SetIndexArrow(1,233); //up white SetIndexStyle(2,DRAW_ARROW); SetIndexBuffer(2, ExtMapBuffer3); SetIndexArrow(2,224); return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { int i; for( i=0; i 0.04 ) { ExtMapBuffer1[pos]=0; ExtMapBuffer2[pos]=curTYP; //down red //Print ("would BUY here ",CurTime()); } pos--; } return(0); } //+------------------------------------------------------------------+