Open trades with different pairs (MT4 or MT5)

 

Hello,

  I'd like to test a correlation strategy and I'm looking for a very simple EA I used but I can't find anymore. I'm looking for a EA or script that does this:

  Inputs were:

- Pair1

- Lot size Pair1

- Buy/Sell Pair1 (can choose if buy or sell that pair)

- Pair2

- Lot size Pair2

- Buy/Sell Pair2 (can choose if buy or sell that pair)

- SL

- TP

The Buy/Sell options helped me if I wanted to change between positively and negatively correlated pairs. The SL and TP would hit when the sum of both profit/losses of the pairs would reach the number.

The idea is to open the trades manually and leave the EA to close the trades when they reach the TP or SL.

I need to have different charts with different pairs opened, so if there's one in which I'm (Long EURUSD + Short GBPUSD) and other (Long EURUSD + Long USDCHF) and the first EA hits the TP, then it would close only the EURUSD of that pair of trades, but not the other one.

 

Any help would be appreciated.