//+------------------------------------------------------------------+ //|Simple counter-indicated trader for AUD/USD | //+------------------------------------------------------------------+ #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, ExtMapBuffer2); SetIndexArrow(2,159); //dot blue return(0); } //+------------------------------------------------------------------+ //| Cursor indicator deinit | //+------------------------------------------------------------------+ int deinit() { int i; for( i=0; i 0.0004 ) { ExtMapBuffer1[1]=0; ExtMapBuffer2[2]=curTYP; ticket=OrderSend(Symbol(),OP_SELL,0.1,Ask,0,Ask+10*Point,Ask-10*Point,"ASD/USD SELL order",525525,0,Red); if(ticket<0) { Print("OrderSend SELL failed with error #",GetLastError()); return(0); } } return(0); }