OPEN-SOURCE SCRIPT
Custom Colored Session (Pre, Open, Close, Post, Outside)

Another script enabling coloring of sessions. Variables for all session timings and colors are exposed. Backgrounds and/or dividers can be enabled. If you only want dividers, just uncheck all of the background sections.
Note: Due to the way weekends are handled on some exchanges, displaying the divider on Friday is not possible.
Note: Displaying backgrounds or dividers in the future does not seem to be possible. I would gladly add this if I can figure it out.
Note: Due to the way weekends are handled on some exchanges, displaying the divider on Friday is not possible.
Note: Displaying backgrounds or dividers in the future does not seem to be possible. I would gladly add this if I can figure it out.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.