How to stop the strategy today after reaching the daily maximum drawdown?
-
Hi,
I would like to set a daily loss limit of 2.7% of the initial balance at the start of the day, and also stop the strategy at the end of the day to resume the next day.
I tried using Time Filters by setting 00:01 - 23:59 and I also tried using a Trade/Order in Loop > candle ID > Daily == numeric value 0, but I must have made a mistake somewhere as the variables do not reset at the start of the day.Can someone help me with this?
Thank you in advance for your support.
-
@gilles You can use a structure like this, but substituting daily profit by daily DD:
-
Thank you for your response, I understand the reasoning but unfortunately it doesn't verify closed trades for the same day.
Could you please complete your example so I know how to take into account both open and closed trades?
Thank you in advance.
-
@l-andorrà Thank you for your response, I understand the reasoning but unfortunately it doesn't verify closed trades for the same day.
Could you please complete your example so I know how to take into account both open and closed trades?
Thank you in advance.
-
@gilles In thast case you will need something like this:
https://fxdreema.com/shared/bKbTjhrse
I used it for pips but you can use it for money. If you need to limit closed trades for today only then you'll need to add a condition block doing that below the 'for each closed trade' block.
-
@l-andorrà to thank you, I am sharing my version with you.
-
@gilles Thank you very much.