How the code looks like if I use multiple EA in one accounts

 

Now I have the EA which handles multiple symbols but share the same pocket. Now I want to integrate portfolio management but I don;t know hw it should looks like. 

For example I have symbol A,B, and C. Each symbols use separate pocket, whcih is calculated by the initial balance. Let say from 100,000$ I separate to A 25,000S, B 55,000S and C 20,000S. 

Now I want the profit that is made by A will go to pocket A, profit that is made by B will go to pocket B, and so on. Anyone here knows how to manage it? It would be nice to get some adivce and I would be very appriciated. 

 

You are probably asking on how to manage your EAs based on a different "magic number", but due to the language barrier, it is difficult to understand on what it is you want advice.

Given that you are from Germany, maybe it would be easier for you to post in the German forumhttps://www.mql5.com/de/forum

Forum für Händler - MQL5 community
Forum für Händler - MQL5 community
  • www.mql5.com
MQL5: Forum über Handel, automatische Handelssysteme und Strategietests