In the earlier days of my coding, I had on many previous occasions had both the "IsTradeAllowed()" and the "IsTradeContextBusy()" not report correctly about the state of a symbol.
So I ended up, just keeping track of Error codes when executing trade functions and have the EA react accordingly if the Error persisted.
Has anyone else also had this kind of misbehavior with these functions? Or maybe a solution to have them report correctly?
If the error is 133 "Trade is disabled", that means the broker disabled trading on this symbol.
You can check that with something like :
To add comments, please log in or register