OrderSend Error 138 Requote - what does it mean ?

 

How can I repair my Expert Advisor for the Fx Broker who generates Error code 138 during open the order ?

Other brokers work well.

 

it means the price changed before your order was received, so the broker refused the order and offered a new price quote, the problem is I dont think there is any way to code the EA to recieve the requoted price.

As far as I know the only options are to either ignore it if you dont want to resend the order at a higher or lower price than before, or to do RefreshRates() and resend the order to get it in at the current price.

Reason: