OPEN-SOURCE SCRIPT
已更新 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
版本注释
minor开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。