Multi currency monitoring and executing code

Hello,

Is this there an mt4 code that allows a trader to be able to trade multiple currencies monitored as if they are one and automatically set up exit parameters based on the selected overall performance and not just the individual currency pair? In other words, if I have 4 trades open on 4 different currencies, with 2 negative and 2 positive, but the overall total is, let’s say, 30 pips positive (as I preset that amount to exit), for the system to automatically close all 4 once the overall total combined profit of the 4 once they reach 30? I hope the question makes sense.

Thank you,

Shaw