Multiple EA

 

Hello ... I just can't find the right answer in the forum. So I hope there are some specialists here who can help me. I have 10 expert advisors on my real account and would like to only have a maximum of 2 running at any time. the Expert Advisors all work very well. Only if everyone places orders at the same time will there be a problem with the margin. Is there any script or program where I can limit the maximum number of trading EAs? or do I have to create a separate account for each EA? thank you for your help

 
If they are all running in one terminal you can use terminal global variables: https://www.mql5.com/de/docs/globals
Dokumentation zu MQL5: Globalvariablen des Kundenterminals
Dokumentation zu MQL5: Globalvariablen des Kundenterminals
  • www.mql5.com
Globalvariablen des Kundenterminals - 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
 
Stefan Leonhart: Hello ... I just can't find the right answer in the forum. So I hope there are some specialists here who can help me. I have 10 expert advisors on my real account and would like to only have a maximum of 2 running at any time. the Expert Advisors all work very well. Only if everyone places orders at the same time will there be a problem with the margin. Is there any script or program where I can limit the maximum number of trading EAs? or do I have to create a separate account for each EA? thank you for your help

You will need to have access to the source code of each EA, and then you will need to modify them so that they apply the "colaborative" strategy rules you want.

You can coordinate this by using Global Terminal Variables as suggested by @Carl Schreiber in his post #1.

Reason: