I'm pretty sure I saw an EA a while ago (probably a year ago). I think it was a free EA.
It checked the account and closed trades that were in a loss, but at the same time closing one that was in profit with around the same amount.
So, if I had one trade with -10$ then it would close another trade that was around $10 in profit, so it would get rid of one or two losing trades that summed up was around zero.
A great thing to have if you one day end up with several open trades and just want to close those who are going wrong when you have some trades in other currency pairs that can help them.
But I don't know the name of the EA or where I saw it. But it was probably here on mql5.