Saturday, November 23, 2013

What does the “Trade context is busy” error message mean on MT4/MT5?

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.

Scenario:

“Trade context is busy” is a problem that arises on user local terminal, not on brokers' servers.
The main culprit of this issue is down to your terminal trying to send more than one signal simultaneously to our servers. This can be caused by multiple mouse clicks or a hyperactive EA. Until the first task has been processed, the second can’t be processed and your terminal displays the “Trade context is busy” message.
Our servers will process your order as soon as they receive it. However, your terminal can only process one order at a time, and it will only process the next order once the first has been completed.
How to solve:
Restarting your platform will clear this.

Alternate Scenario:
This error means that 2 or more eas are trying to open, close or modify their orders at the same time. There is one "stream" in metatrader for ea trading, so if one ea is busy talking to server, all the rest will have to wait until it finishes. 
How to solve:1. if you can code, just go to Error 146 ("Trade context busy") and How to Deal with It - MQL4 Articles, there is a description of this problem and functions to add to your code to avoid this happening in future.
2. If you cannot code, just use 1 ea per metatrader, or (if you want to run more than 1) make sure they will not trade too often. If you run 2 scalping eas at the same time, you will get quite a lot of errors 146.
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.
Alternate Scenario:
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 developers should build code into their products to work around this problem. It is a problem with EA and its interaction with MT4.

How to solve:

Once you start seeing this problem, you should close MT4 and re-open it in order to free up the thread.


3 comments:

  1. More than 107% profit already booked in past 3 months and more counting.
    You can also become a part of this money manking fx machine.
    Third party verified statements as proof.
    For more details visit:
    www.earn4x.com

    ReplyDelete
  2. World Best Forex Signals And Trade Copier Service Provider is #HotForexSignal.
    Advantage of HotForexSignal .
    The Hot Forex Signal are a proved forex signals providers and we honestly provides you forex signals since long time ago with very satisfactory accuracy rate and help you to build up a large amount of profit through following our forex signals. Hot Forex Signal 100% honestly,100% challengeing signals provider. You already know that these signals will not only help you to make a large amount of profit but also can help you to make you strong in your knowledge level with high accuracy. The Hot Forex Signal will provide you most intuitive and very easy to use forex trading signals than other signals providers. Anyone must get an outstanding result from these signals with imaging efficiency that is only possible in your dream because we have a large amount of efficiency and a lot of forex traders. All signals need to put manually to your forex trading software or platform by automated forex trading. It will directly and clearly indicate you what decision and which position buy or sell you will put your data in you Forex trading platform.Though we know clearly about the forex signals, now we will highlight again about this to clear your knowledge accurate and effective through Forex Signals and making of The Hot free Forex Signal service. The hot forex signal will provide you the suggestion to entry any trade to put in your trading platform on an accurate currency pair with actual time and price. All information is created by the robot or the forex trading specialists. But the hot forex signal follows the best trader’s advice to provide you signal. Not scam robots are followed by the hot Forex signals.

    ReplyDelete
  3. Foreign exchange buying and selling also referred to as foreign exchange buying and selling is the buying and promoting of different forms of currencies, usually in pairs, with the forex to be offered with normally better in price than before and the currency to be offered with typically lower cost than it usually has. The main goal on this form of trading commercial enterprise is to buy currencies at some stage in its lowest viable fee and then selling those currencies at some stage in its height charge at the same time as buying any other forex with the bottom fee in the method.
    forex signals
    trade copier

    ReplyDelete