OPEN-SOURCE SCRIPT
Updated Previous Day Levels (High, Low, Open, Close)

This TradingView Pine Script indicator plots the previous day’s price levels (High, Low, Open, and Close) as horizontal rays that extend across the current trading day.
Green lines mark the Previous Day High and Previous Day Low.
Yellow lines mark the Previous Day Open and Previous Day Close.
Labels are automatically displayed at the right edge of the chart, positioned above each line, making it easy to identify the corresponding level in real time.
The levels are updated daily and always begin at the start of the current day, ensuring that they cover the entire intraday session.
This tool helps traders quickly visualize key support and resistance levels from the previous trading day and incorporate them into intraday strategies.
Green lines mark the Previous Day High and Previous Day Low.
Yellow lines mark the Previous Day Open and Previous Day Close.
Labels are automatically displayed at the right edge of the chart, positioned above each line, making it easy to identify the corresponding level in real time.
The levels are updated daily and always begin at the start of the current day, ensuring that they cover the entire intraday session.
This tool helps traders quickly visualize key support and resistance levels from the previous trading day and incorporate them into intraday strategies.
Release Notes
This TradingView Pine Script indicator plots the previous day’s price levels (High, Low, Open, and Close) as horizontal rays that extend across the current trading day.Green lines mark the Previous Day High and Previous Day Low.
Yellow lines mark the Previous Day Open and Previous Day Close.
Labels are automatically displayed at the right edge of the chart, positioned above each line, making it easy to identify the corresponding level in real time.
The levels are updated daily and always begin at the start of the current day, ensuring that they cover the entire intraday session.
This tool helps traders quickly visualize key support and resistance levels from the previous trading day and incorporate them into intraday strategies.
Release Notes
This TradingView Pine Script indicator plots the previous day’s price levels (High, Low, Open, and Close) as horizontal rays that extend across the current trading day.Green lines mark the Previous Day High and Previous Day Low.
Yellow lines mark the Previous Day Open and Previous Day Close.
Labels are automatically displayed at the right edge of the chart, positioned above each line, making it easy to identify the corresponding level in real time.
The levels are updated daily and always begin at the start of the current day, ensuring that they cover the entire intraday session.
This tool helps traders quickly visualize key support and resistance levels from the previous trading day and incorporate them into intraday strategies.
Release Notes
This TradingView Pine Script indicator automatically plots key price levels from the previous trading day and the pre‑market session on intraday charts.Previous Day Levels
High and Low → Green horizontal rays
Open and Close → Yellow horizontal rays
Pre‑Market Levels (04:00 – 09:30 New York time)
High and Low → Aqua (light blue) horizontal rays
All levels extend across the entire current trading day, making them easy to reference during live trading.
Labels are displayed at the beginning of each line, clearly identifying whether the level corresponds to the previous day or the pre‑market session.
This tool helps traders quickly identify and track important support and resistance zones from both the previous day and the pre‑market, which are often respected during regular trading hours.
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.