stop the EA if the equity reaches a cerain level

 
Is there a way to stop the EA if the equity reaches a ceratin level? Is there a built-in function for this or this function must be in the EA settings?
 
Thomas19890620Is there a way to stop the EA if the equity reaches a ceratin level? Is there a built-in function for this or this function must be in the EA settings?

Must be coded in the EA.

Reason: