I am creating an ea but I would like to add an equity protection to it so that it close all trades and stop trading for the day whenever the equity limit is reached (lets say 2% of the account) and start trading again the following. And same for the profit target. It would close all trades and stop trading for the day whenever the profit target is hit.