It's usually when the price changes in between the time when the EA sends an order and the server actually processing it.
I've not looked at the code but it may just need to RefreshRates() before sending orders or possibly send the orders in a retry loop until it succeeds.
Regards, Paul.
I've not looked at the code but it may just need to RefreshRates() before sending orders or possibly send the orders in a retry loop until it succeeds.
Regards, Paul.