I have a bit of a peculiar question.
I would like to restrict the days that a specific bars type (eg. Renko, Day, Minute) can process data to only the first Monday of the month. I know that this can be achieved on a weekly basis with a Trading Hours template, by only selecting Monday as a trading day, but the Trading Hours template restricts me to only intra-week periods, and does not allow me to use only the first Monday of the month.
In a regular strategy script, I would use something like --> if (Time[0].Day <= 7 && Time[0].DayOfWeek == DayOfWeek.Monday) <-- which would give me the desired exclusion. But in the script of a Bars Type, the Time[0] function does not exist.
So the question is, how can I code this in a Bars Type script?
Thank you in advance for your time, I look forward to your answer.
GLFX005
Comment