OrderSend() BUG

 

Hello,

is it possible that there is a BUG in the OrderSend()-Function?

For few weeks the OrderSend() doens't work correct. When I have a SL in my OrderSend(), the EA doesn't open the order, but when I set SL to 0, then he opens a order and I have to modify the order with OrderModify().

Why?

OrderSend(Symbol(), OP_BUY, order.lot.size, Ask, 3, Ask-25*Point, 0);
 
tomplank:

Hello,

1. is it possible that there is a BUG in the OrderSend()-Function?

For few weeks the OrderSend() doens't work correct. When I have a SL in my OrderSend(), the EA doesn't open the order, but when I set SL to 0, then he opens a order and I have to modify the order with OrderModify().

Why?

1. possible but very, very unlikely . . .

Read this: ECN Brokers & OrderSend()

 
  1. Not adjusting for 5 digit brokers SLIPPAGE, and SL
  2. Not adjusting for ECN brokers
  3. Not testing your return codes to find out why