Examples: MagicNumber: "Magic" Identifier of the Order

 

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

 
Great article!
 

Andrey

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.

 
This article helps a lot...thank you!
 

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" 

Reason: