Hi 137,
Thanks for your observation
Hum ... actually I never pay attention on this issue. Here is my code when the EA decide to open a Stop Order:
if (LastOpen==OP_SELL) BuyStop (Magic, lotsi, hline, gap, 2*gap);
if (LastOpen==OP_BUY) SellStop(Magic, lotsi, lline, gap, 2*gap);
So, it just set the TP and SL according to the gap size. I think I also consider Bid and Ask levels last time. However, since the order closing always done successfully at the same time when TP/SL touched, I never think about it anymore.
Btw, do you experience this kind of problem? TP or SL touched but only one side of the trades closed?
Thanks for your observation
Hum ... actually I never pay attention on this issue. Here is my code when the EA decide to open a Stop Order:
if (LastOpen==OP_SELL) BuyStop (Magic, lotsi, hline, gap, 2*gap);
if (LastOpen==OP_BUY) SellStop(Magic, lotsi, lline, gap, 2*gap);
So, it just set the TP and SL according to the gap size. I think I also consider Bid and Ask levels last time. However, since the order closing always done successfully at the same time when TP/SL touched, I never think about it anymore.
Btw, do you experience this kind of problem? TP or SL touched but only one side of the trades closed?