Perhaps that is what you want:
easy idea....
Begin define one variable ContinueOpening=true
put it to false when your Equity level reach specified percentage
example :
when(AccountEquity() lt; specifiedpercentage)
CloseAll();
ContinueOpening=false;
Place this ContinueOpening==true at your entire order commands logic.
You need to code it to all the EAs that being use in your account platform.
Subsequently it wont activate trades when the condition occured.