Download MetaTrader 5
To add comments, please log in or register
Do you want to become a well-known developer? Execute the orders of traders in the Freelance service!
MetaQuotes Software Corp.
MetaQuotes Software Corp. 2006.07.24 12:02 

New article MagicNumber: "Magic" Identifier of the Order has been published:

The article deals with the problem of conflict-free trading of several experts on the same МТ 4 Client Terminal. It "teaches" the expert to manage only "its own" orders without modifying or closing "someone else's" positions (opened manually or by other experts). The article was written for users who have basic skills of working with the terminal and programming in MQL 4.

Author: Andrey Khatimlianskii

MQL4 Comments
MQL4 Comments 2006.09.04 17:47  
Great article!
MQL4 Comments
MQL4 Comments 2006.12.25 02:02  


have you considered having the EA generate its own ID at start up and have the ability to not only see its own orders but to be able to track each of its orders even if it has 100 orders open. It would have to have the ability to recover its ID or restates as well. With that you can create a function to be called in the int() function at start up.

MQL4 Comments
MQL4 Comments 2012.07.02 13:18  
This article helps a lot...thank you!
wainer 2015.03.27 01:17  

I need to know how to get the minimal magic number available.

Example: there are two open orders with magic numbers "1" and "3", so the minimal available is "2" 

To add comments, please log in or register