You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I wrote an expert that should open and closes orders based on some conditions.
I run several instances of this expert (on different charts). After a couple of
hours first I am getting error 128 (trade timeout) and after that a bunch of error 146 (trade context busy).
I solved error 146 by implementing "semaphores". So now I am sure that only one
expert is trying to trade at any time and if the trade is failed then all the experts will not do any trades for 10 sec. Also I check IsTradeAllowed before even trying to trade.
Error 146 is gone now, but error 128 still remains. The funny thing is - manually orders can be opened and closed (at the samemtime when the experts are getting error 128)!
I have latest build of your platform.
Pls, give me some hints.