OPEN-SOURCE SCRIPT
Güncellendi

Trading Sessions and Kill Zones

924
TRADING SESSIONS AND KILL ZONES

Four trading sessions, three ICT kill zones and the previous day / week extremes
in one overlay — each one time-zone aware, so every region follows its own
daylight saving switch instead of drifting an hour twice a year.

--------------------------------------------------------------------------------
WHAT IT DRAWS
--------------------------------------------------------------------------------

SESSIONS
Every session is shown as a coloured background that spans its trading window
horizontally and the high-to-low range it produced vertically. The box grows bar
by bar while the session is running, so at any moment you can see the range that
has been built so far. There is no frame around the box — only the fill — which
keeps the candles readable when sessions overlap.

Four sessions are pre-configured and every one of them is fully editable:

Tokyo 09:00 - 16:00 Asia/Tokyo (Asian session, incl. Singapore)
London 08:00 - 16:30 Europe/London
New York 09:30 - 16:00 America/New_York (Indices)
08:00 - 17:00 America/New_York (Forex)
pre-London 08:00 - 09:00 Europe/Berlin (Frankfurt open)

The New York session has a dedicated switch for the two conventions that are
actually in use — 09:30 for index and equity traders, 08:00 for FX — instead of
forcing you to remember and retype the hours.

Optional per-session extras:
- Session name, centred above the box, in five text sizes
- Tick range of the session, printed under the box ("143 ticks")
- Average price of the session, drawn as a dashed line across the box
- Vertical opening and closing markers at the session boundaries

KILL ZONES
The three ICT kill zones are marked on top of the sessions with a horizontal
line on the high and a horizontal line on the low of the range the kill zone
produced, plus a name label. All three are drawn identically, so a glance is
enough to tell what you are looking at:

Asia KZ 09:00 - 13:00 Asia/Tokyo
London KZ 07:00 - 10:00 Europe/London
NY KZ 08:00 - 10:00 America/New_York

These are the familiar windows, expressed in the local time of the region they
belong to. London and New York observe daylight saving time, so a single local
window automatically produces the correct UTC window in both halves of the year:
London is 07:00-10:00 UTC in winter and 06:00-09:00 UTC in summer, New York is
13:00-15:00 UTC in winter and 12:00-14:00 UTC in summer. Tokyo does not observe
DST, so the Asian window is fixed — 09:00-13:00 JST equals 00:00-04:00 UTC. Set
it to 10:00-14:00 JST if you prefer the winter convention (01:00-05:00 UTC).

Name, window, time zone, colour, line width and the name label can be changed
per kill zone, and each one can be switched off individually.

PDH / PDL AND PWH / PWL
The previous day's high and low, and the previous week's high and low, can be
plotted as horizontal levels — the classic liquidity references.

What is different here: each level is anchored at the bar that actually created
it. The PDH line does not begin at midnight; it begins at the exact bar where
yesterday's high was printed, which means it visibly grows out of the session
box that produced it. High and low are anchored independently, so at a glance
you can see that, for example, yesterday's high came out of the Tokyo session
while the low was made in London. That context is lost when levels are simply
drawn from the start of the day.

Per level pair you can set: labels on or off, only the most recent period or the
full history, the colour, and where the line ends — at the current bar, at the
end of the day / week, or extended to the right edge of the chart.

--------------------------------------------------------------------------------
TIME ZONES AND DAYLIGHT SAVING
--------------------------------------------------------------------------------

Every session and every kill zone carries its own IANA time zone name rather
than a fixed UTC offset. Tokyo follows Japan, London follows the UK, New York
follows the US and pre-London follows Germany. Each region therefore switches on
its own DST date — including the two or three weeks in March and in October /
November when the United States and Europe are out of sync and a fixed-offset
indicator silently misplaces every box.

The mechanism is the same on historical bars as it is in real time, so what you
see in bar replay or in a backtest is what would have been shown live. Any other
IANA time zone works too, and fixed offsets such as UTC+2 are accepted if you
deliberately want a window that ignores DST.

--------------------------------------------------------------------------------
SKIP WEEKEND
--------------------------------------------------------------------------------

A single switch removes every session and kill zone that falls on a Saturday or
Sunday, judged in the time zone of the session concerned. On forex, futures and
equities this changes nothing, because those markets have no weekend bars. On
crypto and other round-the-clock symbols it stops the chart from showing a
"London session" on a Sunday afternoon.

--------------------------------------------------------------------------------
HOW TO USE IT
--------------------------------------------------------------------------------

- Session range breakouts. The Asian range is visible as a finished box by the
time London opens, so the levels that London trades against are already on the
chart. The same applies to the London range going into the New York open.

- Timing with kill zones. The kill zone lines mark the high and low of the
window where the day's directional move most often originates, so you can see
immediately whether price is still inside that range or has already taken one
side of it.

- Liquidity references. PDH / PDL and PWH / PWL are the obvious pools of resting
orders. Because the lines start where the level was created, you also get the
session context — a high made in thin Asian trade tends to behave differently
from one made during the New York open.

- Reading who moved the market. Coloured session backgrounds make it obvious
whether a move happened in Asia, in Europe or in the US, which is difficult to
reconstruct from candles alone once the chart is scrolled back.

- The Frankfurt hour. The pre-London box covers the hour before the London open,
a window that frequently sets the tone or produces the first sweep of the
Asian range.

- Backtesting and journaling. Turn on the tick range to record how large each
session actually was, and the average price line to see where the session
spent most of its time relative to its close.

--------------------------------------------------------------------------------
SETTINGS OVERVIEW
--------------------------------------------------------------------------------

General Session names on/off, opening and closing lines, tick range,
average price, name size, skip weekend
PDH / PDL On/off, labels, only last day, extend mode, colour
PWH / PWL On/off, labels, only last week, extend mode, colour
Sessions 1-4 On/off, displayed name, session time, time zone, colour
(New York: Indices / Forex switch instead of a time field)
Kill zones Names on/off, name size, line width
Kill zones 1-3 On/off, displayed name, window, time zone, colour

--------------------------------------------------------------------------------
NOTES AND LIMITATIONS
--------------------------------------------------------------------------------

- Sessions and kill zones require an intraday chart timeframe; they are not
drawn on daily and higher. PDH / PDL needs an intraday chart, PWH / PWL works
on intraday and daily.

- "Average price per session" is the mean of the typical price (high + low +
close) / 3 across the session's bars. It is a true average, not the midpoint
of the box, so it tells you where trading was concentrated rather than where
the range happened to be centred.

- TradingView limits a script to 500 boxes, lines and labels. On a very long
intraday history the oldest drawings are dropped automatically. Reduce the
number of active sessions, or the extras, if you need to look further back.

- Kill zone windows are conventions, not exchange schedules. The defaults follow
the widely used definitions, but they are inputs precisely because different
desks use slightly different hours.

- This is a visual framework, not a signal generator. It marks time and price
context; it does not tell you to buy or sell, and it contains no alerts.

--------------------------------------------------------------------------------

The settings layout was modelled on "Trading Sessions by klmn1k from Trading
Volium", a closed-source script. No code was taken from it — this is an
independent implementation written from scratch in Pine Script v6, with the kill
zones, the weekend filter and the origin-anchored PDH / PDL / PWH / PWL added on
top.

Open source under the Mozilla Public License 2.0. Suggestions and corrections
are welcome.
Sürüm Notları
Session projection — the chart no longer stops at the last bar.

The session that is currently open now runs on to the time it is scheduled to
close instead of being cut off at the last candle. The part still ahead is drawn
in the same colour, and the block keeps tracking the high and low the session
has made so far, so you can see how much of the session is left at a glance.

A session that has not opened yet is blocked out in advance at its real future
position, together with the time remaining until it starts — "Tokyo in 2h 05m".
It hands over to the live box the moment the session actually opens. There is no
price data in the future, so a preview block borrows the recent high/low for its
height: only its left and right edge carry information.

Both follow the same per-region time zones and the same weekend filter as the
rest of the script, so a projection stays correct across a daylight saving
switch, and on a Friday evening the next block is placed on Monday rather than
on Saturday.

New settings, group "Session projection":
- Carry the running session to its close (default on)
- Show sessions before they start (default on)
- Preview horizon, hours (default 12) - a session is only
previewed once it starts within this many hours, so blocks that would sit
far off the right edge are left out
- Show time remaining (default on)

Projection applies to the four sessions. Kill zones still end at the last bar,
because the lines they draw mark a high and a low that can still move.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.