//+------------------------------------------------------------------+ //| EAS Signals.mq4 | //| | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Blue #property indicator_color2 Red #property indicator_width1 3 #property indicator_width2 3 //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; double adxcBlue_M5; double adxcRed_M5; double adxcBlue_M15; double adxcRed_M15; double apaBlue_M5; double apaRed_M5; double apaBlue_M15; double apaRed_M15; //---- int nShift; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0, DRAW_ARROW, 0, 1); SetIndexArrow(0, 221); SetIndexBuffer(0, ExtMapBuffer1); //---- SetIndexStyle(1, DRAW_ARROW, 0, 1); SetIndexArrow(1, 222); SetIndexBuffer(1, ExtMapBuffer2); //---- return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit, limit2; int counted_bars = IndicatorCounted(); //---- check for possible errors if(counted_bars < 0) return(-1); //---- last counted bar will be recounted if(counted_bars > 0) counted_bars--; limit = Bars - counted_bars; //---- for(int i=0; i adxcRed_M5 || adxcBlue_M15 > adxcRed_M15) && (apaBlue_M15 > apaRed_M15 && apaBlue_M5 > apaRed_M5)) ExtMapBuffer2[i] = High[i] + nShift; } //---- return(0); } //+------------------------------------------------------------------+