Hello everybody, I am trying to code a simple EA, if the candle shape as a Hammer o Hanging man, it should send a buy stop order.
extern int p = 2;
double body = MathAbs(Close - Open);
double ol = Open - Low;
double cl = Close - Low;
int start ()
if( ol >= p*body && cl >= p*body) // condition for be a hammer or hanging man.
int ticket = OrderSend(Symbol(),OP_BUYSTOP,0.01,High+100*Point, 2, Bid + 400*Point, Bid - 400*Point);
but when I run the EA, nothing happen.