OPEN-SOURCE SCRIPT
Prior Day OHLC

Displays the previous day's key price levels (Open, High, Low, Close) as horizontal lines on intraday charts only. Each level is fully customizable with individual show/hide toggles, line colors, label colors, and line styles (solid, dashed, or dotted). Lines can be extended backward by a configurable number of days (1-10) and automatically extend to the right edge of the chart. Compact labels (PDO, PDH, PDL, PDC) appear at the right side of each level for easy identification. Ideal for day traders who use prior day's range as support/resistance reference points.
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.