OPEN-SOURCE SCRIPT
Cập nhật Session Sweeps and Levels

Session Sweeps and Levels (⏰)
An overlay indicator that tracks key price levels from each major trading session and detects liquidity sweeps against them. Built for futures/forex traders who use session structure as context for entries.
Tracked Sessions
Each session displays three layers: the active in-progress level (white), the last confirmed level (session color), and the previous completed level (session color). All session times, colors, and visibility are fully configurable.
Features
Use Cases
An overlay indicator that tracks key price levels from each major trading session and detects liquidity sweeps against them. Built for futures/forex traders who use session structure as context for entries.
Tracked Sessions
- Tokyo (1900–0400 ET) — High/Low
- London (0300–1200 ET) — High/Low
- Pre-NY (0400–0930 ET) — High/Low
- New York (0930–1600 ET) — High/Low/Open/Close
- Post-NY (1600–1700 ET) — High/Low
- Globex (1800–1900 ET) — High/Low
- IGIR (1700–1800 ET) — High/Low/Open
- CME Settle — 17:00 ET daily close
Each session displays three layers: the active in-progress level (white), the last confirmed level (session color), and the previous completed level (session color). All session times, colors, and visibility are fully configurable.
Features
- Liquidity Sweep Detection — fires when price wicks beyond a session level and closes back through it. Tracks bullish (low sweep) and bearish (high sweep) with configurable wick distance and per-level cooldown
- FVG Confirmation (optional) — require a Fair Value Gap on a higher timeframe to exist (and optionally match direction) before a sweep alert fires. Configurable HTF, min size, max age, and mitigation tracking
- Per-Session Sweep Toggles — enable/disable sweep scanning independently for each session, including separate toggles for NY Open and IGIR Open
- Active Session Sweeping — optionally scan in-progress session levels, not just confirmed ones
- Flexible Line Styling — solid, dashed, dotted, or arrow styles; thickness, extension, and label offset all adjustable
- Value Type Filters — toggle Highs, Lows, Opens, Settles, and Labels independently
- Price Scale Integration — all confirmed levels exposed to the right-edge price scale and Data Window for quick reference
Use Cases
- Identify liquidity pools where stops are clustered (prior session highs/lows)
- Trade sweeps of session extremes as reversal or continuation setups
- Use NY Open and Settle as intraday equilibrium reference points
- Confirm sweep trades with HTF FVG alignment to filter noise
- Feed session context into external bots or dashboards via JSON alerts
Phát hành các Ghi chú
minorMã 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.