Solid opening/closing functions - page 2

 

Error Codes.  

. (138)

next time placing manual trade allow some points difference with price that moment

If you allow some points price change the chance you get requote is lower

the more points the lower number of requote

 
kleelof:

Just out of curiosity, when you manually place or close an order, and it comes back with a requotes, what is the actual error value that was returned by the server?

Probably . . .

 

ERR_REQUOTE138The requested price has become out of date or bid and ask prices have been mixed up. The data can be refreshed without any delay using the RefreshRates function and make a retry. If the error does not disappear, all attempts to trade must be stopped, the program logic must be changed.
Reason: