PROTECTED SOURCE SCRIPT

ICT Killzones & Macros (v1.1.3)

20
ICT Killzones & Macros (v1.1.3)

Screenshots / GIFs
syot kilat

Overview

ICT Killzones & Macros highlights intraday “windows” many traders track:

Killzones (KZ): broader sessions (e.g., Asia, London, New York), rendered as price-action boxes with header labels and an optional “next” preview header.

Macros: smaller windows within or outside KZs, each with a live high/low box, an optional “next” preview header, plus optional chart-height background bands.

You’ll see:

Borderless price-action boxes that track the highest high and lowest low inside each window.

Header boxes above each window with centered labels.

“Next” preview headers for the earliest upcoming Macro and Killzone.

Optional backgrounds for the current Macro (live) and the next Macro (future window).

High/Low lines for the current window, with optional extensions that continue after the window ends until price crosses or the trading day rolls.

All times are interpreted in a configurable timezone (default America/New_York, DST-aware), while internal logic uses Unix time.

Features

5 Killzones & 8 Macros out of the box (fully configurable).

Session strings in HHMM-HHMM (supports cross-midnight, e.g., 1900-0200).

Next previews: shows the earliest upcoming enabled Macro/KZ (clock-robust).

Macro backgrounds:

Current macro → chart-height band from start to “now”.

Next macro → chart-height band from start to end (future).

High/Low lines:

Live H/L lines during the active window.

On close, optional extensions per side (Hi/Lo) stop on first touch or day roll; or static lines if extension is off.

Object hygiene:

Session retention cap so only the last N completed windows per Macro/KZ are kept.

Trim logic cleans boxes, headers, and any static lines.

Inputs (top-level)

Timezone (IANA, DST-aware): e.g., America/New_York (default).

Sessions to show (per window): Max number of completed windows retained for each Macro/KZ.

Header (global)

Header height (ticks)

Header gap (ticks)

Header border width / style

Header fill opacity

Header text size / color

Show next macro header (toggle)

Show next killzone header (toggle)

Macro Box (global)

Box fill opacity

Box border width / style

High/Low Lines

Show High/Low Lines (toggle)

High/Low Lines Style (Solid/Dashed/Dotted)

Extend High/Low (toggle)

Extend High/Low Style (Solid/Dashed/Dotted)

Killzones (KZ 1–5)

Each KZ has:

Label

Enable (toggle)

Session (HHMM-HHMM)

Fill color

Defaults (examples):

Asia — 1900-0200, blue

London — 0200-0500, purple

New York AM (pre-market) — 0700-0930, green

London Close — 1000-1200, yellow (disabled by default)

New York PM — 1330-1600, orange (disabled by default)

Macros (1–8)

Each Macro has:

Label

Enable (toggle)

Session (HHMM-HHMM)

Fill color (defaults to gray, except any you changed)

Defaults (examples):

AM-1 0945-1015, AM-2 1045-1115, Lunch 1200-1300 (orange), PM-1 1330-1430, PM-2 1510-1600.

How it works

Windows: When a bar enters a session, we start tracking hi/lo, draw a price-action box, and position a header box above it (gap + height in ticks).

Next previews: For each enabled set (Macros/KZs), we compute the next window by clock (handles cross-midnight) and draw a centered header at current price across the future window.

Backgrounds:

Current macro: a chart-height box from start index to current bar.

Next macro: a chart-height box from next start to next end using xloc.bar_time.

High/Low lines: Live H/L lines update during the window. On close:

If Extend is OFF → draw static H/L lines across the window width.

If Extend is ON → spawn independent Hi & Lo extension lines that advance bar-by-bar and stop at price cross or day roll (tz-aware).

Tips

Keep Sessions to show modest on low timeframes to limit objects.

Use a per-symbol template for your preferred Macro/KZ setup.

DJ/Bonds FX can be set to exchange timezones instead of NY if you prefer.

Known limitations

Extension stop logic uses bar high/low overlap; on very large bars it may halt on the same bar as close (by design).

On extremely long lookbacks with many enabled windows, you may hit max_boxes_count/max_lines_count.

Performance guidance

Use on 1–15m timeframes for the best visual granularity.

Reduce enabled windows and “Sessions to show” if you hit object limits.

Changelog (short)

v1.1.3 — High/Low lines + per-side extensions; static lines on window close when extension is off.

v1.1.2 — Next Killzone preview header (clock-robust).

v1.1.0 — Defaults: 5 Killzones & 8 Macros; removed snap-to-killzone.

v1.0.0 — Independent Macro & KZ rendering.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.