Script that highlights a bar in a bar chart with two time price label or anything similar

Hello Optuma team,
Darren asked me to post here any queries about scripts.
I need some help with a script that highlights a bar with a Time Price Label or similar tool. i need to highlight everyday the bars when the MT4 - XAUUSD starts and finishes for the day.
For instance, from what I noticed it starts US time zone at 1:00 AM and closes 11:50 PM every day except Sundays. Market days only.
Or perhaps, a green box that highlights tat time frame so I do back testing only in between (BNE time - AEST) .
I wan’t to be able to use this script in other metals, crypto, etc.

Thanks a lot all

Hi Ilton,

Here’s a post that will help explain how intraday scripting works:

To highlight the 1am bar use 60 / 1440 = 0.041667 in the formula.

However, as this is the first bar of the day you could use this to highlight when the Day of the Week function does not return the same value as the previous bar, signifying the change in day:

DAYOFWEEK() <> DAYOFWEEK()[1]

Use it in a Show Bar set to Line: