Kindly see attached the original ea to be modified.
The ea will open both a buy and a sell trade simultaneously and the sell trade and buy trade are subject to the ea settings. If, say, the sell trade on the pair is closed, then no more sell trade is opened until the buy trade is closed. when the 2 trades a re closed, the ea will again open a buy trade and a sell trade.
Regards