For example the weekly candle closes at 00:00 UTC but the indicator started drawing the close at 23:00 UTC when viewing the 1H timeframe which annoyed me a little. So the change in line 21 made it align better. I need to take a closer look at what started happening to make sure it is inputting the correct data. This will do for now tho.