I have trouble with requoting error. Sometimes happens, not under our controls.
But my problem is how to handle the error?
Usually after OrderSend, every Expert Advisor stops until the server responds. But what happens when the server responds with Requote error? Does the script is stopped yet (because OrderSend() is sent and active) or the Expert Advisor continue working ?
With Requoting, the Broker expect to accept a new price, how exactly happen this? With a new OrderSend() with the new Refreshed quotes ?
Any help will be appreciated.
What happens is the OrderSend returns with an error. You check _LastError and you handle with a RefreshRates and a OrderSend retry.I personally, just log all errors and return. On the next tick, I have new values and will try again.
To add comments, please log in or register