OPEN-SOURCE SCRIPT
Updated Vertical Lines Past+Future

This indicator plots up to 5 vertical lines at specific times, both on previous days AND the upcoming instances of the current day.
Change times, colors, style and width.
With time zone support.
The indicator fetches the midnight UNIX timestamp and adds the duration till the specified times from midnight to get the x-values for the positioning of upcoming lines.
One limitation is that when a chart is set to RTH the indicator will only start to plot the upcoming lines when the session has started.
Change times, colors, style and width.
With time zone support.
The indicator fetches the midnight UNIX timestamp and adds the duration till the specified times from midnight to get the x-values for the positioning of upcoming lines.
One limitation is that when a chart is set to RTH the indicator will only start to plot the upcoming lines when the session has started.
Release Notes
Added "scale.none" constant so you won't have to merge scales when using it in an indicator pane.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.