here’s one possible way to do it, on one hand keeping your combo drawonlastbaronly=true & drawsegments for live, and on the other hand keeping hh and ll values in the return line to have them available for color zone customisation in the properties window (assuming you want to keep the color zone as per your attached image even if the zone stops at midnight your timezone):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DEFPARAMDrawOnLastBarOnly=true
//timeframe(1 hour)// I declare the timeframe, if not this will give the high and low of the first candle of the timefrae selected