|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
|||
It would be grateful if somebody tell me what problem caused a EA occasionally (about 50%) fails to open an order with the error #146.![]() According to stderror.mqh, it is Trade context is busy. Is it a problem of broker , my internet connection or EA ? Thanks in advance. Nomura |
|
|||
|
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. |
|
|||
|
Quote:
Thanks for your advice.![]() I just applied a simple EA to several currency pairs with 30m TF. As your advice, orders for different pairs were triggered in the same time. I think this caused the "Trade context busy". I cannot code by myself and I can read simple coding only. I think I can learn much in this Forum especially from you. Thanks with many thanks. Nomura |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/setup-questions/9682-trade-context-busy.html
|
|||
| Posted By | For | Type | Date |
| MoneyQs » Blog Archive » Trade context is busy !? | This thread | Pingback | 09-18-2007 12:21 PM |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| To trade or not to trade Indicators? | yaniv_av | Indicators - Metatrader 4 | 1 | 03-27-2007 01:01 PM |