IsTradeAllowe()
Rosh:
Check this
Thanks for your reply, I think the problem is not there. I get the error message but the EA works fine so is very extrange.
In this case see article Error 146 ("Trade context busy") and How to Deal with It
I use this code into start() loop and I get "Trade not allowed" every time. Any suggestion?