Please login to post or view tickets
Knowledgebase: Trader's Desktop
|
MT4 Error: Trade Context Busy
Posted by Barry Bahrami on 19 September 2008 11:20 AM
|
|
|
MT4 Error: Trade Context Busy This error is due to an EA trying to place an order when MT4 is not ready to accept the order. That is, only one expert (script) can trade at a time. All other experts that try to start trading will be stopped by Error 146. This may occur if multiple charts with EA's are opened in the same MT4 terminal, and they each try to make a trade at around the same time. Since MT4 can only handle one order at a time, the error will occur with those EA's that can not get through to the trade context. One possible solution is to install mutiple MT4 terminals for the same account and setup fewer charts in each. Since each MT4 terminal has only one trade context, fewer EAs' will be fighting for it and have a better opportunity to get through. EA develpers should build code into their products to work around this problem. It is not a problem with the virtual desktop (or your PC), but the EA and its interaction with MT4. Some situations at the broker can also make it come and go. Once you start seeing this problem, you should close MT4 and re-open it in order to free up the thread. This forum explains the problem and resolution better: http://www.metaquotes.net/forum/1186/ and http://www.metaquotes.net/forum/1560/ For EA coders, how to fix it: http://articles.mql4.com/141 IBFX has published the following regarding the error: You receive “Trade context is busy†when you try to process two or more orders at the same time. If you have placed a trade and do not wait until it processes completely and then try to place the same trade or a different trade the commands go into a loop and you get “Tread context is busyâ€. The only solution is to close down the platform and restart it. | |
|
|
|
Comments (1)
Jerry
20 September 2008 01:20 PM
your article saved me a lot of time and money. thank you!
