Session Levels

Overview
Session Levels is a Pine Script v6 indicator for TradingView that plots key price levels from previous and current sessions. It overlays Previous Day High/Low, Pre-Market High/Low, Previous Close, and Today’s Open/High/Low as horizontal lines—levels that traders commonly reference as potential support/resistance. The script updates dynamically and offers customizable timing and visuals for intraday and multi-day analysis.
How It Works
Previous Day High, Low, and Close are retrieved via request.security on the daily timeframe. Pre-Market High/Low are tracked inside a user-defined window (default: 4:00–8:30 America/New_York) using timestamp and rolling math.max/math.min. Today’s Open is captured at 9:30 America/New_York, and Today’s High/Low update throughout the session. Lines are plotted with user-selectable style (solid/dotted/dashed), width, and color, and labeled (e.g., PDH, PDL, PMH, PML). Lines extend to the right for ongoing context.
Key Features
• Previous Day, Pre-Market, and Today’s levels in one view
• Custom pre-market window (America/New_York, DST-aware)
• Flexible line styles, widths, and colors
• Per-level visibility toggles
• Ongoing updates to Today’s High/Low
• Clear labels for quick identification
What It Displays
A consolidated set of session-based reference levels to help study potential support, resistance, and breakout zones across intraday and multi-day contexts.
Originality
The Pine v6 indicator implementation uses TradingView built-ins (request.security, timestamp, math.max, math.min). No external open-source code is incorporated.
Common Uses
• Day traders reviewing intraday levels and potential breakouts
• Swing traders monitoring multi-day reference zones
• Technical analysts annotating key price areas
Configuration Notes
Set the pre-market window (default: 4:00–8:30 America/New_York) and choose which levels to display (e.g., Previous Day, Pre-Market, Today’s Open). Adjust line styles, widths, and colors to fit your chart.
Legal Disclaimer
For informational and educational purposes only—not investment, financial, or trading advice. Past performance does not guarantee future results; trading involves significant risk. Provided “as is,” without warranties. Consult a qualified professional before making decisions. By using, you accept all risks and agree to this disclaimer.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact TradingScriptSolutions directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact TradingScriptSolutions directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.