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.
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với TradingScriptSolutions.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với TradingScriptSolutions.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.