An EA can only open one order at a time.
https://www.mql5.com/en/articles/1412
Each instance of MT4 has ONE trading context. This means that TRADING functions are single threaded.
Error 146 happens when there is contention for this trading context.
You can program around this.
However...
If you want simultaneous execution, then I'd recommend setting up multiple instances of the MT4 platform, one for each symbol/period (this can be on the same physical PC and the same broker account) and running the same EA in each.
CB
Error 146 happens when there is contention for this trading context.
You can program around this.
However...
If you want simultaneous execution, then I'd recommend setting up multiple instances of the MT4 platform, one for each symbol/period (this can be on the same physical PC and the same broker account) and running the same EA in each.
CB
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
"06:21:57 SuperTrader1 USDJPY,H1: Error opening BUY order : 146
06:21:57 SuperTrader1 GBPJPY,M30: Error opening BUY order : 146
06:21:57 SuperTrader1 GBPCAD,M30: Error opening BUY order : 146
06:21:57 SuperTrader1 GBPJPY,M30: Error opening BUY order : 146
06:21:57 SuperTrader1 AUDJPY,H1: Error opening BUY order : 146
06:21:57 SuperTrader1 GBPUSD,M30: Error opening BUY order : 146
06:21:57 SuperTrader1 USDJPY,H1: Error opening BUY order : 146
06:21:57 SuperTrader1 GBPCAD,M30: Error opening BUY order : 146
06:21:57 SuperTrader1 GBPUSD,M30: Error opening BUY order : 146
06:21:57 SuperTrader1 GBPJPY,M30: Error opening BUY order : 146
06:21:57 SuperTrader1 USDJPY,H1: Error opening BUY order : 146"
05:38:58 '112803': order buy 0.10 USDJPY opening at 90.51 sl: 90.01 tp: 91.51 failed [Trade context is busy]
05:38:58 TradeDispatcher: trade context is busy
05:38:58 '112803': order buy 0.10 GBPUSD opening at 1.5061 sl: 1.5011 tp: 1.5161 failed [Trade context is busy]
05:38:58 TradeDispatcher: trade context is busy
05:38:58 '112803': order buy 0.10 GBPJPY opening at 136.27 sl: 135.77 tp: 137.27 failed [Trade context is busy]
05:38:58 TradeDispatcher: trade context is busy
05:38:58 '112803': order buy 0.10 USDJPY opening at 90.49 sl: 89.99 tp: 91.49 failed [Trade context is busy]
05:38:58 TradeDispatcher: trade context is busy
Can any one give me solution. Kindly mail me to vkarthikeyenv@yahoo.co.in