Experts: Close all orders once the drawdown reaches a specific percentage

 

Close all orders once the drawdown reaches a specific percentage:

This code has some functions to close all opened orders once the drawdown reaches a specific percentage of the account balance.

Author: Khaled Mohamed

 

Hi,

nice EA, I just testing it, but it looks like EA is closing orders until DD is above customised DD. It do not close all orders in all. Am I right?

I'm not a professional programmer, but if EA should close all, the command when the EA is counting opened orders should be adopted in "OnTick" section.

best

m.

 
i have 1000eur balance.   and i put the EA in my account, and i put 1% max DD percentage.   and when the equity is 990eur doesnt close any trades.  now muy equity is 985eur and the trade still open.   this EA dont work well or i dont know how to work it.   i put magic number 0