Code trading week of the month
-
So I need help.
I cannot think of the way to code the trading week of the month.
So if month starts on the weekend, then first trading week is on Monday.
If Month starts with any tradign day, then its counted as 1st and after weekend 2nd trading week.
What I need is exactly 3rd week but I am having issues creating loops or any condition to find it. Please help!
-
@stomper I would use the monthly/weekly bars as a shortcut.
Find the time of monthly open, then count how many weekly bars come after that -
Got any loop examples? I am still struggling. Made so much of complex EAs but I feel like a total noob now not being able to replicate this easy stuff...
-
@stomper this should work https://fxdreema.com/shared/i26fYyN2d
-
Would it work for mq5?
-
@roar Forgot to tag you but check question above.
-
@stomper yeah, I guess
-
@roar It works. thanks a lot. it was simple as that but sometimes you get stuck on stuff like this...