How to connect 2 Forex Robots that do not have the same Magic Number?
- How to create 2 magic numbers in 1 EA
- Donchian Channel indicator for MQL5 need help
- Set Magic Number in MQL5
Here you have a list of all MQL5 functions: https://www.mql5.com/en/docs/function_indices
Look for PositionsTotal() and PositionGetTicket() and maybe in the codebase for examples: https://www.mql5.com/en/search#!keyword=positiongetticket&module=mql5_module_codebase
Links corrected by moderator for English instead of German site
- www.mql5.com
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You will need access to the source code of both EA 1 and EA 2 and you will need to learn how to code, or hire someone, to make changes to both EAs.