Maximum drawdown

 

Dear All,


I have a question regarding the MAXIMUM DRAWDOWN.

It is possible to give the expert advisor an order not to open any more positions when he reaches a certain drawdown value ?

If so,how?

Thanks for help.

 
How can I search for indicators and other elements in this forum?
How can I search for indicators and other elements in this forum?
  • 2017.05.29
  • www.mql5.com
How can I search for indicators in this forum? I need the Hodrick Prescott Filter for MT4. Please, if anyone can help me, I thank you in advance...
 

Sure, it is possible and easy too.

Just monitor the OrderProfit(), then created a boolean expression.

If OrderProfit() value is exceed the drawdown limit,

then the boolean expression will turn "false" thus disabling any further trade.


Goodluck.

 
Pedro Ramada:

Dear All,


I have a question regarding the MAXIMUM DRAWDOWN.

It is possible to give the expert advisor an order not to open any more positions when he reaches a certain drawdown value ?

If so,how?

Thanks for help.

Two important things to calculate your DD are equity and Balance, once you read those two values, you can set your condition if equity is less than calculated value, don't add more positions

 
Thanks for the help Sergey !!!!
Sergey Golubev:
 
Thanks for the help Ahmad !!!!
Ahmad Zuhairdi Noh:

Sure, it is possible and easy too.

Just monitor the OrderProfit(), then created a boolean expression.

If OrderProfit() value is exceed the drawdown limit,

then the boolean expression will turn "false" thus disabling any further trade.


Goodluck.

 
Mafuta it's sounds easy but do you have the basecode? =) thanks for the help
Mafuta Landou:

Two important things to calculate your DD is equity and Balance, once you read those two values, you can set your condition if equity is less than calculated value, don't add more positions

Reason: