Example:
My account has $150 deposited.
New day, it created 20 running trades. During the day, it has $100 profit - highest profit. (many times, the profit return to $20 or $30 at the end of the day)
I want to create a trailing stop for profit of account, when it has $100 or higher - highest profit. If it returns to $80 profit/$20 away from highest profit (of all running trades) or 20% of highest profit, the EA will close all trades.
Hope anyone can give a suggestion, I try to find a solution but no success.

