Login Page - Create Account

Support Board


Date/Time: Mon, 16 Jun 2025 09:20:55 +0000



Post From: How to plot only the current hourly open as dash on a 5min chart

[2025-05-14 18:31:23]
User214239 - Posts: 35
Oh my god you're my hero. I've been trying for so long to figure this out before bugging you guys. Thank you so much. I have one follow up question if you don't mind. I'm trying to do the same thing, but with another line for the 240 minute period open (4 hour). I set up a second Period OHLC-Variable Period study set to 240 minutes, and I assumed that I'd change the 24 in the formula to 6 to divide the day into 4 hour periods, and that does seem to work I think since the period just changed as I'm writing this and it looks correct, but for some reason it's giving me a second line on the chart also that is the open of the previous 4 hour candle. I think it has to do with the Number of Bars to Calculate setting in the Spreadsheet formula. For the 60 min version from my first question I had set that number to 60 with the idea that if I went down to a 1min timeframe on this chart it would be covering the time period. With that idea I then set the number of bars to calculate for the 240 minute version to 240, but when I do that the second line appears. If I move it back down to 60 its fine for now, but I'm not sure if that's the correct way to do it, or if it's going to give me a problem after the next hour for example. Am I doing that correct with the way I changed the 24 to a 6 in the formula, or is there something I'm missing/doing wrong? Sorry if its a stupid question and I really appreciate the help.
Date Time Of Last Edit: 2025-05-14 18:47:42