Look into GlobalVariables: https://book.mql4.com/variables/globals
They serve many purposes, one of them being a form of communicating between indicators/EAs.
For your purposes, you can typecast a boolean value that instances of your EA can check to see if whether they should close their orders or not.
Likewise, you can store the dollar value (double) so the EA instances know when they should close orders.

GlobalVariables - Variables - MQL4 Tutorial
- book.mql4.com
GlobalVariables - Variables - MQL4 Tutorial
i recommend the global variables, however it has some issues, such as not saving sometimes when you expect it would, but i still use them anyways. Other method would be to save internal variables to a file. or a combo of both.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
how do I change an EA variable that is in several assets? I'm gonna explain: I'm going to put the EA on several assets and I'm going to set a target and I want to close all orders when I get to 10 dollars, I need to leave the target on the dashboard and when I change the target to 12 dollars I want it changed on all assets. this is my question: How will I make a variable communicate with the EA that are in other assets?