This script highlights the start and end of past sessions and also for upcoming sessions of the current day. Additionally, the start/end bars of the current day can be marked with a text label.
Time zone parameters are available for all time parameters, so that local exchange times can be configured, without the need for manual time zone or daylight saving time (DST) adjustments. Tradingview’s internal time calculations take care of the conversion.
For ease of use, the script comes preconfigured with the start/end times of the Forex and NYSE trading sessions. If you need more highlighted bars, just add the script multiple times and adapt the configuration as needed.