OPEN-SOURCE SCRIPT
Previous Day OHLC + Open Marker

Previous Day OHLC + Open Marker
This indicator is designed to help traders quickly identify the most important price levels from the previous trading session and today’s open. It provides a clean and configurable overlay of the previous day’s OHLC (Open, High, Low, Close) along with the current day's opening price, making it easy to spot price reactions, liquidity sweeps, and confluence zones.
📌 Key Features
✅ Previous Day OHLC Lines
Plots horizontal lines for High (H), Low (L), Open (O), and Close (C) from the previous session
Each line is independently toggleable
Fully customizable in color, transparency, and thickness
✅ Today's Session Open (DO)
Marks the current day's opening price
Helps identify directional bias, trend/momentum shifts, or mean-reversion points
✅ Minimalist Labels for Clarity
Text-only labels like H, L, O, C, and DO — no bulky label boxes
Color-matched to each line for visual simplicity
Optional display to keep charts clean
✅ Session-Based Highlight Zone
Optionally highlights the area between the previous day’s High and Low with a shaded box
Useful for identifying the day’s value area or range breakouts
✅ Smart Alerts
Receive alerts when price crosses any of the levels: PDH, PDL, PDO, PDC, or Today’s Open
Helps you catch key interactions without watching the chart constantly
🧠 Ideal For
Intraday traders using VWAP, order blocks, or liquidity concepts
Swing traders who want to see how current price relates to prior structure
Scalpers looking for clean levels to enter fades, reversals, or breakouts
Anyone applying institutional trading concepts (PDH/PDL sweeps, FVGs, BPRs, etc.)
⚙️ Customization Options
Toggle each level (H/L/O/C/DO) individually
Show or hide labels and highlight zone
Customize color, line thickness, and transparency
Clean layout — no line extensions across the entire chart
🧼 Design Philosophy
This script was created for clarity, speed, and minimalism. It avoids clutter while preserving all the crucial context price action traders need. Labels are informative but unobtrusive, and alerts help automate level tracking.
🛠 Built with Pine Script v5
🔔 Alerts Included
📊 Optimized for both intraday and swing trading
📦 Lightweight and modular by design
This indicator is designed to help traders quickly identify the most important price levels from the previous trading session and today’s open. It provides a clean and configurable overlay of the previous day’s OHLC (Open, High, Low, Close) along with the current day's opening price, making it easy to spot price reactions, liquidity sweeps, and confluence zones.
📌 Key Features
✅ Previous Day OHLC Lines
Plots horizontal lines for High (H), Low (L), Open (O), and Close (C) from the previous session
Each line is independently toggleable
Fully customizable in color, transparency, and thickness
✅ Today's Session Open (DO)
Marks the current day's opening price
Helps identify directional bias, trend/momentum shifts, or mean-reversion points
✅ Minimalist Labels for Clarity
Text-only labels like H, L, O, C, and DO — no bulky label boxes
Color-matched to each line for visual simplicity
Optional display to keep charts clean
✅ Session-Based Highlight Zone
Optionally highlights the area between the previous day’s High and Low with a shaded box
Useful for identifying the day’s value area or range breakouts
✅ Smart Alerts
Receive alerts when price crosses any of the levels: PDH, PDL, PDO, PDC, or Today’s Open
Helps you catch key interactions without watching the chart constantly
🧠 Ideal For
Intraday traders using VWAP, order blocks, or liquidity concepts
Swing traders who want to see how current price relates to prior structure
Scalpers looking for clean levels to enter fades, reversals, or breakouts
Anyone applying institutional trading concepts (PDH/PDL sweeps, FVGs, BPRs, etc.)
⚙️ Customization Options
Toggle each level (H/L/O/C/DO) individually
Show or hide labels and highlight zone
Customize color, line thickness, and transparency
Clean layout — no line extensions across the entire chart
🧼 Design Philosophy
This script was created for clarity, speed, and minimalism. It avoids clutter while preserving all the crucial context price action traders need. Labels are informative but unobtrusive, and alerts help automate level tracking.
🛠 Built with Pine Script v5
🔔 Alerts Included
📊 Optimized for both intraday and swing trading
📦 Lightweight and modular by design
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.