Two different EA's on same type of chart


I am running two different EA's that both work on the same Fx pair and the same time frame (gbp-usd M5).

When one of the EA's is actiavted... the SL and TP show up on both chart windows. It says which EA placed the trade, but how can I be sure this is accurate? And how do I know that the SL and TP on the incorrect chart window will not accidentally trigger the EA to close?

If you have further questions for clarification, please ask.
Some coders are suing magic number to be coded inside each EA as the parameter, the other coders are using unique comments (unique for each EA), and so on ...
if you are the coder so you should know about it (it is about the question: "how does one EA know that this trade was opened by the different EA?").