How to handle Off Quote Error in Trade Copier ?

 

I am working on a trade copier and sometimes the copier cant open, close or modify an order at all , and it throws an off quote error.

whats the best approach to deal with this situation to make sure every order is executed on the client account?

because I was thinking of sending the order again (if there is off quotes error) till it gets fulfilled but the copier works in OnTimer() event

and if there are too many requests then I suppose  it could freeze the mt4 terminal?

so whats the best approach to handle this situation ?

 
refresh quotes and try again.