OPEN-SOURCE SCRIPT
Session Killzones ICT Concept

Session Killzones - ICT Concept
Session Killzones plots the four standard ICT killzone sessions
(Asia, London, NY AM, NY PM) in New York time. It tracks unswept
session highs and lows in real time, fires alerts on sweeps, and
displays a compact session info panel with countdown.
Built for ICT traders who need to know which session levels are
still active and which have already been taken.
SESSIONS
Draws session boxes and boundary lines for each killzone in New
York time with automatic DST handling (EDT/EST). Each session is
fully customizable: name, time range, and color.
Default sessions (New York time):
be modified to match your broker's session definition.
UNSWEPT LEVELS
When a session closes, its high and low are extended forward as
dashed lines. These are unswept levels session liquidity that
price has not yet taken.
When price reaches an unswept level, the line is automatically
removed from the chart. No manual cleanup needed. This gives a
live, self-cleaning view of which session levels still matter.
Sweep events fire an alert. Alerts are available for high sweeps
and low sweeps independently.
SESSION PANEL
A compact info panel shows session context at a glance. Three
detail levels:
Inside a session: "NY AM - 1h 23m left"
Between sessions: "London in 4h 10m"
Color indicators:
London session to 01:00-04:00, the countdown reflects that.
HOW TO USE
Display
- Chart Theme: Dark / Light
- Timezone: Auto DST / Manual UTC-4 (EDT) / Manual UTC-5 (EST)
Sessions (per session: toggle, name, time range, color)
- Asia, London, NY AM, NY PM
Appearance
- Show Session Box, High/Low Lines, Midpoint Line, Opening Price
- Lines Only mode: removes box fill, shows boundary lines only
- Line Thickness: 1 to 4
- Boundary Line Style: Solid / Dashed / Dotted
- Color Intensity: global transparency adjustment (-50 to +50)
Levels
- Show Unswept Levels: toggle
- Level Line Style: Solid / Dashed / Dotted
- Anticipation Zone: how far unswept lines extend right (candles)
- Show Level Price Labels: toggle
Info Panel
- Detail Level: Simple / Standard / Advanced
- Position: Top Left / Top Right / Bottom Left / Bottom Right /
Middle Left / Middle Right
- Size: Tiny / Small / Normal
Display Limits
- Show on Timeframe: 1M / 3M / 5M / 15M / 30M / 45M / 60M
- Show Last N Days: 1 to 30
NOTES
Session Killzones is open source under CC BY-NC-SA 4.0 and is intended for educational purposes only. Nothing in this script constitutes financial advice or a recommendation to buy or sell any instrument.
The DST resolver calculates timezone offset from bar time rather than the system clock, which means the indicator behaves correctly in TradingView replay mode. If you replay to November 2023, the resolver returns EST, not the current wall-clock timezone.
The indicator is designed for intraday timeframes from 1M to 60M and works on any instrument available on TradingView, though it is primarily optimized for forex majors and gold (XAUUSD).
Internally, all session state is tracked using explicit boolean arrays. No state is inferred from drawing object positions or line coordinates, which avoids a common source of bugs in session-based indicators.
Session Killzones plots the four standard ICT killzone sessions
(Asia, London, NY AM, NY PM) in New York time. It tracks unswept
session highs and lows in real time, fires alerts on sweeps, and
displays a compact session info panel with countdown.
Built for ICT traders who need to know which session levels are
still active and which have already been taken.
SESSIONS
Draws session boxes and boundary lines for each killzone in New
York time with automatic DST handling (EDT/EST). Each session is
fully customizable: name, time range, and color.
Default sessions (New York time):
- Asia: 20:00 - 00:00
- London: 02:00 - 05:00
- NY AM: 08:30 - 11:00
- NY PM: 13:30 - 16:00
be modified to match your broker's session definition.
UNSWEPT LEVELS
When a session closes, its high and low are extended forward as
dashed lines. These are unswept levels session liquidity that
price has not yet taken.
When price reaches an unswept level, the line is automatically
removed from the chart. No manual cleanup needed. This gives a
live, self-cleaning view of which session levels still matter.
Sweep events fire an alert. Alerts are available for high sweeps
and low sweeps independently.
SESSION PANEL
A compact info panel shows session context at a glance. Three
detail levels:
- Simple - shows the active session name and time remaining (or next session and time until open).
- Standard - adds today's percentage range for each session that has occurred, with direction indicator relative to session open.
- Advanced - includes unswept level prices from all closed sessions directly in the panel, alongside the session breakdown.
Inside a session: "NY AM - 1h 23m left"
Between sessions: "London in 4h 10m"
Color indicators:
- Green: session is active
- Yellow: less than 15 minutes remaining (closing warning)
- Gray: currently between sessions
London session to 01:00-04:00, the countdown reflects that.
HOW TO USE
- Session boxes show the developing high and low of each killzone as the session progresses.
- Dashed lines extending beyond the box are unswept levels. These represent liquidity that price has not yet reached.
- When a dashed line disappears, that level has been swept. It is no longer an active reference.
- Use the percentage range in Standard mode to gauge which sessions were high-range versus low-range days.
- Use the countdown to plan your analysis around session opens and closes. Most high-probability ICT setups occur within the first 30 to 90 minutes of a killzone.
- Enable alerts on sweep events to get notified the moment a session high or low is taken, even if you are not at the screen.
Display
- Chart Theme: Dark / Light
- Timezone: Auto DST / Manual UTC-4 (EDT) / Manual UTC-5 (EST)
Sessions (per session: toggle, name, time range, color)
- Asia, London, NY AM, NY PM
Appearance
- Show Session Box, High/Low Lines, Midpoint Line, Opening Price
- Lines Only mode: removes box fill, shows boundary lines only
- Line Thickness: 1 to 4
- Boundary Line Style: Solid / Dashed / Dotted
- Color Intensity: global transparency adjustment (-50 to +50)
Levels
- Show Unswept Levels: toggle
- Level Line Style: Solid / Dashed / Dotted
- Anticipation Zone: how far unswept lines extend right (candles)
- Show Level Price Labels: toggle
Info Panel
- Detail Level: Simple / Standard / Advanced
- Position: Top Left / Top Right / Bottom Left / Bottom Right /
Middle Left / Middle Right
- Size: Tiny / Small / Normal
Display Limits
- Show on Timeframe: 1M / 3M / 5M / 15M / 30M / 45M / 60M
- Show Last N Days: 1 to 30
NOTES
Session Killzones is open source under CC BY-NC-SA 4.0 and is intended for educational purposes only. Nothing in this script constitutes financial advice or a recommendation to buy or sell any instrument.
The DST resolver calculates timezone offset from bar time rather than the system clock, which means the indicator behaves correctly in TradingView replay mode. If you replay to November 2023, the resolver returns EST, not the current wall-clock timezone.
The indicator is designed for intraday timeframes from 1M to 60M and works on any instrument available on TradingView, though it is primarily optimized for forex majors and gold (XAUUSD).
Internally, all session state is tracked using explicit boolean arrays. No state is inferred from drawing object positions or line coordinates, which avoids a common source of bugs in session-based indicators.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。