how do i make the session box change color if closing price of the session is higher than opening price of the session
such say. if opening of asia is lower then the closing of the last candle in asia, the box is Green. else the box border is red. thank you
box_start := inSessionDTCC and not inSessionDTCC[1] ? time : box_start[1]
if inSession and not inSession[1] start_PRICE := close[1]
if start_PRICE < close boxcolor:= color.red else boxcolor:= color.green
if showbox
box := box.new(box_start, high, time, low, xloc=xloc.bar_time, border_color = boxcolor, border_width=2,text = "Dsdfsd",text_size = size.small,text_color = color.black,text_valign =text.align_center)