OPEN-SOURCE SCRIPT

Session Killzones ICT Concept

7 103
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):
  • Asia: 20:00 - 00:00
  • London: 02:00 - 05:00
  • NY AM: 08:30 - 11:00
  • NY PM: 13:30 - 16:00
Each session can be toggled on/off independently. Time ranges can
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.
SESSION COUNTDOWN
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
The countdown adapts to custom session times. If you change the
London session to 01:00-04:00, the countdown reflects that.


HOW TO USE
  1. Session boxes show the developing high and low of each killzone as the session progresses.
  2. Dashed lines extending beyond the box are unswept levels. These represent liquidity that price has not yet reached.
  3. When a dashed line disappears, that level has been swept. It is no longer an active reference.
  4. Use the percentage range in Standard mode to gauge which sessions were high-range versus low-range days.
  5. 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.
  6. 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.
SETTINGS

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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。