OPEN-SOURCE SCRIPT
Cập nhật Session Levels - Asia, London, NY, Premarket & Prior Day

What it shows
How to use
Limitations
Drawing count is capped by max_lines_count and max_labels_count. Very long history may require reducing stored historical levels or zooming to a shorter range.
Disclaimer
For chart analysis and education only. Past or hypothetical behavior does not guarantee future results. Not financial advice.
- session highs/lows for Asia, London, premarket, and the NY session during the RTH window; midnight open; NY RTH open and session close; optional NDOG 25% / 50% / 75% vs prior RTH close.
- Prior day: completed RTH open, high, low, and close from the last RTH session, plus prior calendar day 24h high/low.
- Untouched liquidity levels: optional highlight (color/line width) until the first qualifying wick/body intersection with the level (see inputs).
- History: optional list of untouched levels from earlier days (subject to TradingView line/label limits).
How to use
- Set timezone and session strings to match your instrument (default: America/New_York).
- Enable or disable level groups and adjust colors under Levels and Colors.
- Use "Untouched liquidity" to emphasize levels that have not yet been traded through per the script rules.
- If you hit drawing limits, lower "Max untouched historical levels" or turn off historical untouched levels.
Limitations
Drawing count is capped by max_lines_count and max_labels_count. Very long history may require reducing stored historical levels or zooming to a shorter range.
Disclaimer
For chart analysis and education only. Past or hypothetical behavior does not guarantee future results. Not financial advice.
Phát hành các Ghi chú
Overlay indicator for session liquidity: intraday highs/lows, RTH open/close, optional midnight open, prior RTH OHLC, optional 24h prior-day range, NDOG, untouched styling, and historical untouched levels.Who it’s for The default session strings and trading-day anchor are oriented toward US-hours / CME-style futures workflows (ETH day roll, NY RTH window). The same framework works for stocks, indices, FX, crypto, etc.—adjust Timezone, Sessions (Asia / London / premarket / NY / trading day), and Level colors to match your market and feed.
What you get [] Today: Session highs/lows (Asia, London, premarket, NY in your RTH window), optional midnight open (calendar midnight in your timezone), NY RTH open & close, optional NDOG (25/50/75 vs prior RTH close). [] Prior day: Completed RTH OHLC; optional prior trading-day 24h high/low (day key from your trading-day session, with calendar fallback). [] Untouched liquidity: Optional emphasis until price is traded through per the script’s rule (touch only counts on bars after the level’s formation bar). [] History: Optional untouched levels from earlier days (merged labels at the same price; subject to TradingView line/label limits).
RTH-only charts If your loaded bars never fall outside the configured NY session, the script treats the stream as RTH-only: it skips Asia/London/premarket/midnight and 24h prior H/L so you don’t duplicate levels you can’t actually form on the chart. Midnight is also hidden when it coincides with the NY RTH open on the same bar (duplicate level).
Inputs (overview) [] Sessions — Timezone, session windows, trading day for new/prior day. [] Levels — Toggle which level groups to show. [] Level colors — Per-group colors. [] General level settings — Line width, label offset, optional price in labels, line anchor depth. [] Untouched levels — Untouched styling + historical untouched options. [] Debug — Optional diagnostics (off by default).
Disclaimer For chart analysis and education only. Past or hypothetical behavior does not guarantee future results. Not financial advice.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.