This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Regular Error 139: "order is locked" errors...


Back to topics list
avatar
153
CoenWillemse 2005.03.09 10:14 
Hi,

I've got a number of experts running on test at the moment which quite regularly throw an Error 139: (order is locked) error when an attempt is made to place a new order. Does anyone have any idea as to why this could be occurring?

Thanks in advance for your help....
avatar
153
CoenWillemse 2005.03.09 10:15 
ooooppss... I should have said in the above ".....when an expert attempts to place a new order"....
avatar
64
Alexandr 2005.03.09 12:00 
Do you use several experts at the same time? This error may occur if several experts try to trade simultaneously.
avatar
153
CoenWillemse 2005.03.14 01:45 
I'm running 10 experts at the moment but each expert only trades one currency - i.e. only one expert will be attempting to create/delete or modify a specific order at any one time.

When you say that I may get this error if several experts attempt to trade simultaneously, do you mean attempt to modify the same order or attempt to do anything with any of the orders simulataneously?
avatar
64
Alexandr 2005.03.14 12:01 
Experts cannot execute any trade operation with any of the orders simultaneously (experts execution does not depend on symbol or trading position). I think we'll add method to recognize this situation from expert.
avatar
153
CoenWillemse 2005.03.15 10:20 
Hi Alexandr. Thanks for the answer. I'll await the new method for now...
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets