EA or script

 

I want an EA or script that close all orders at specific drawdown, for ex. when dd exceed 20% or 30%
Can anyone help me


Thanks

 
Hi, did you check code base already? Regards Greg
 
Btw, you want positions to be closed.

Orders cannot be closed, only deleted.
Orders cannot have drawdown.


 

Hi
thanks for ur reply

what do u mean
How can I use that check code

 
Dominik Egert:
Btw, you want positions to be closed.

Orders cannot be closed, only deleted.
Orders cannot have drawdown.


yes I mean positions
 
He is referring to this:


Forget the false highlights.

https://www.mql5.com/en/code



 
How can I find my request
 
https://letmegooglethat.com/?q=mql+close+positions+in+drawdown+download
 
Dominik Egert:
https://letmegooglethat.com/?q=mql+close+positions+in+drawdown+download
thanks but I did find it :(
 
Rabeia Abdelhamid Saleh Mussa:
thanks but I did find it :(

https://www.mql5.com/en/code/14582


This is one search result. - Googles first link. 


here a search on mql:

https://www.mql5.com/en/search#!keyword=close%20positions&module=mql5_module_codebase

Close all orders once the drawdown reaches a specific percentage
Close all orders once the drawdown reaches a specific percentage
  • www.mql5.com
This code has some functions to close all opened orders once the drawdown reaches a specific percentage of the account balance.
 
Dominik Egert:

https://www.mql5.com/en/code/14582


This is one search result. - Googles first link. 


here a search on mql:

https://www.mql5.com/en/search#!keyword=close%20positions&module=mql5_module_codebase

I see
but at the comments it is obvious not good working
EA closes positions until the DD reached then it did not close the other positions
Reason: