How can I identify next Monday?
-
I am building an EA designed to close all open trades when any of the following conditions are met:
- At the end of Friday's session.
- When two indicators are under certain conditions.
Whatever happens first must close all open trades and no new orders must be open until next week. This is what I have so far:
https://fxdreema.com/shared/37ik5l7ke
A problem rises when the indicators conditions are activated before the end of Friday's session. How can I skip all remaining time this week until next Monday? I'm not used to using time filter blocks and I'm stuck now.
Thank you in advance.
-
add variable which can working as "switch", reset this switch once per monday (set value to 1)
when indicators conditions are active, set switch value to 0
add this "switch" as condition for for Fridays session -
Interesting. I'll try it.
Thank you.