MQL4 Error code 138 for OrderClose

Looked around for a while,

It actually has to do with the simple "how do you know what parameter (for Buy or Sell) to use in the OrderClose. I had used Bid price all the time, so for a sell order, it couldn't close as it needs Ask price, instead of Bid.

This entry was posted in Technical. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.