Im locking for a Trade Managing ea that have some specific tools.

Need it to close a basket of trades in dollar TakeProfit, but also have it to lower the basket dollar TakeProfit according to number of open trades.
Say there are 1-3 open trades then it should have a basket TP of 100$.
If another trade is opened, 4 open trades, it should lower the basket TP 10$ to 90$.
5 open trades - 80$, and so on until it reaches Break-Even.
When BE is reached it should not lower the TP any more.

Is there a Trade Manager that does this allready, or is there anybody that can help me code it?