//+------------------------------------------------------------------+ //| Engulfing.mq4 | //+------------------------------------------------------------------+ #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Blue #property indicator_color2 Red #property indicator_width1 1 #property indicator_width2 1 extern bool AlertON = false; extern color colorBulls = Blue; extern color colorBears = Red; extern bool DrawCandle = true; double BufferUP[]; double BufferLOW[]; int candle[]; //+------------------------------------------------------------------+ int init() { SetIndexStyle(0,DRAW_ARROW); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(0,241); SetIndexArrow(1,242); SetIndexBuffer(0,BufferUP); SetIndexBuffer(1,BufferLOW); SetIndexLabel(0,"UP"); SetIndexLabel(1,"DOWN"); SetIndexEmptyValue(0,0.0); IndicatorShortName("FiguresCandle"); return(0); } //+------------------------------------------------------------------+ int deinit() { ObjectsDeleteAll(0,OBJ_TREND); //ObjectsDeleteAll(0,OBJ_RECTANGLE); return(0); } //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); int S; string NameFigur; if(counted_bars>0) counted_bars--; int limit=Bars-counted_bars; for(int i=0; iClose[bar] && Open[bar+1]Close[bar]) { return(-1); } if(Low[bar+1]>Low[bar] && High[bar+1]Close[bar+1] && Open[bar]