I am preparing an article that would allow it but generally speaking you can use the magic number (and symbol) as your id which will not be changed by the server (other than the order comment):
PS: please speak English in the English forum.
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How to manage orders in this case? Is it possible for me to select the order via COMMENT and manage it from there?
Is it possible for me to define a global variable TICKET_01, TICKET_02, etc. and whenever I open an order or an operation in strategy 01 I immediately configure TICKET_01 = (operation ticket in strategy 01), and if I open an order/op in TICKET_02 = (operation ticket in strategy 02) ?
I'm not an experienced programmer, I'm certainly not thinking in the smartest way possible, I'm open to all criticism.
If successful, the EA will open multiple operations and pending orders on a specific asset, but each strategy will be responsible for only 1 open operation and a maximum of 2 pending positions.