OPEN-SOURCE SCRIPT

Previous Day OHLC + Open Marker

126
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

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.