1 EA to check multiple accounts for equity
-
I want to create 1 EA which will do the following. I would appreciate any ideas to be able to achieve this:
- The EA will check equity on multiple accounts (over 20)
- If the EA finds the equity on the account to be more than a certain number(this number will be provided by the user for each account) then the EA closes all trades in that account and creates an Alert.
- The accounts will be with all different brokers.
-
Can someone please help me here?
-

Edit: you'll have to place an EA for each account though -
Thanks for your reply. But I really need to be able to do this from 1 EA. I cannot have multiple EA's running at the same time due to many reasons.
-
But how can you get information from multiple accounts at the same time in the same MT

-
OK lets say I have 10 accounts with FXCM, 10 accounts with Forex.com.
I don't mind to run 2 MT at the same time. I want the EA to log in to each of the 10 accounts every minute, check equity if it is above the specified number and close all trades if that is the case.