EA that switches the Auto Trading off

 

Can anyone help me with an EA or Script that switches the Auto Trading OFF when the current loss on the account reaches a certain percentage of the balance, or if Margin Level reaches a certain number?


I would appreciate any info please. Thanx

 

To stop an expert advisor

bool condition = ... //conditions to avoid
if (condition==true) ExpertRemove();
 
paul selvan:

To stop an expert advisor

thanx Paul, but I have no idea what to do with this. I dont understand it

Reason: