EA skips a trade. How to solve this?

Sometimes my Expert Advisor doesn’t open/modify an order. Because:

  • price changes so fast that the order gets prevented from going through.
  • my network times out even a little bit.

How do I solve this in MQL4?

Example of my problem:
The Expert Advisor opens the first order. After 50 pips, the EA tries to open the second order and modify the TP/SL of the first order, but sometimes this fails. If both fail, how can I code a correction in MQL4?

hi, Michaellobry,

Does it work correctly in backtesting? guess it does. Check the settings? maybe its trying to set tp,sl, too close to the price? Maybe it’s not selecting the correct order?

Does it work correctly on a demo account?

Post your ordermodify code if you like… can check it.