I'm a newb with Pineview and I'm trying to piece together some examples of how to draw a box around the 8am UTC+2 1H candle every day.
I can't seem to figure out how to calculate the coordinates of the box itself. Does anyone have any examples that I could retrofit?
I'm using the https://www.tradingcode.net/tradingview/session-high-low-box/#summary as a template
`
//@version=5
indicator("Daily 00", overlay=true)
var op1 = 0.0
var op2 = 0.0
var startindex=0
c_green = color.rgb(33, 150, 243, 80)
op1 := (hour== 5 and minute == 0) ? open : op1[1]
op2 := (hour== 12 and minute == 0) ? open : op2[1]
startindex := (hour== 5 and minute == 0) ? bar_index : startindex[1]
if (hour== 12 and minute == 0)
box.new(startindex, op1, bar_index, op2,bgcolor=c_green, border_width=0,border_style=line.style_dashed)