How the heck can I get a specific time candle hi/lo of Monday?
-
I need to get 2 price variables of Monday first 8 hours high and low. Now getting current day Hi-Lo is simple just use time-based candles.
However how the heck so at any given day of the week and at any given time I would get this week's Monday variables.I was thinking of something like checking what time and reference to that count the candle id's but that's a hard way of doing it.
Does anyone have ideas?
Thanks in the advice!
-
@william29 You can do it this way:

Please notice you need to coordinate the number of candles to be considered with the current timeframe as I highlighted.
-
Well, that does not solve a problem that I have. This script will only work on Monday and between that time period. So on any random day, it will simply give me 0. And I'd have to leave the pc on for a whole week sure it would get values but that's not ideal.
I need that any given day and given time id turn on EA and it would know this week Monday first 8 hours high and low prices. I obviously can do it manually but where the fun in that?
If it would have been that simple I would have not asked for help lol.
Thanks for a response anyways.
-
@william29 Then you need to create a loop searching for that day of the week but looking backwards. I'm afraid loops are not my field of expertise, though. Maybe miro or roar can help.