if(Close[1] > Open[1]) { double S=MathAbs(High[0]-Close[1]); double Sp=S/Point; if(Sp>=4) result=OrderSend(Symbol() , OP_SELL , lot , Bid , Slippage , Bid+SL*Point , Bid-TP*Point, "Smart Scalper" ,MagicNumber , 0 , Green); Comment(Sp); }
if(Close[1]< Open[1]) { double D=MathAbs(Close[1]-Low[0]); double Dp=D/Point; if(Dp>=20) result=OrderSend(Symbol() , OP_BUY , lot , Ask , Slippage , Ask-SL*Point , Ask+TP*Point, "Smart Scalper" ,MagicNumber , 0 , Green); Comment(Dp); }