How to connect 2 Forex Robots that do not have the same Magic Number?

 
Help Me❗ How to connect 2 Forex Robots that do not have the same Magic Number?

Hello Bro.
Currently, I have 2 Forex Robots trading on the same account with the same currency pair. However, these 2 Robots do not have the same Magic Number (this is my own intention because if set up with the same Magic Number they will make me lose control). Robot 1 I downloaded from an external library (EA 1) and Robot 2 I created myself using EA Builder software (EA 2). Is there any way to help EA 2 place orders when EA 1 has orders and EA 2 close orders when EA 1's orders have all been closed? Please help. Thanks a lot.
 

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

Dokumentation zu MQL5: MQL5 Funktionenliste
Dokumentation zu MQL5: MQL5 Funktionenliste
  • www.mql5.com
MQL5 Funktionenliste - Nachschlagewerk MQL5 - Nachschlagewerk über die Sprache des algothitmischen/automatischen Handels für MetaTrader 5
 
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
 
DucNguyen1306: Help Me❗ How to connect 2 Forex Robots that do not have the same Magic Number?
Currently, I have 2 Forex Robots trading on the same account with the same currency pair. However, these 2 Robots do not have the same Magic Number (this is my own intention because if set up with the same Magic Number they will make me lose control). Robot 1 I downloaded from an external library (EA 1) and Robot 2 I created myself using EA Builder software (EA 2). Is there any way to help EA 2 place orders when EA 1 has orders and EA 2 close orders when EA 1's orders have all been closed? Please help.


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.

Reason: