OPEN-SOURCE SCRIPT
تم تحديثه

ICT Killzones + Liquidity [TakingProphets]

9 204
OVERVIEW

ICT Killzones + Liquidity [TakingProphets] maps the trading day: session killzones, the highs and lows each session leaves behind, key opens, and optional macro windows, all handled by a single levels engine.

It draws the Asia, London, NY AM, NY Lunch, and NY PM sessions as killzone boxes, tracks each session's high and low as liquidity levels, marks the midnight, 8:30, and True Day opens, and can bracket ICT macro windows. A shared engine governs how every level is published, swept, merged, and retired.

This indicator does not provide trading signals, entries, or forecasts. It is a visualization aid for studying session structure, timing, and liquidity within an ICT-style analytical framework.


WHAT THIS ENGINE DOES DIFFERENTLY
-----------------------------------------------------------------------------------------------

This is a rebuilt levels engine rather than a plain session drawer. The behavior below is what defines it:

Live confirmation — A session high or low is only published as a live level after its extreme has held for ten minutes, so the working level does not flicker on every new wick during the session.

Mitigated parking — When a level is traded through, it can be frozen at the bar where it was swept instead of being deleted, so the study of where liquidity was taken stays on the chart.

Label merging — Levels that sit within a tick tolerance of one another are merged into a single label, ordered by significance (All-Time High, then previous week, previous day, opens, then sessions), so overlapping levels read cleanly.

Lookback retention — Each finished session keeps its own high and low within a chosen lookback window (one day, week, month, or max), so prior sessions remain available for review.

Style presets — A Default preset with colored lines and boxes, and a Clean preset that renders everything in black, shrinks labels, and hides the killzone boxes for a minimal chart.


COMPONENTS
-----------------------------------------------------------------------------------------------

Session Killzones — Asia, London, NY AM, NY Lunch, and NY PM, each as a box tracking the session's range, with independent color, style, and toggles.

Session Liquidity — Each session's high and low, published live after confirmation and retained per the lookback window.

Key Levels — Previous day high and low, previous week high and low, and the running All-Time High.

Key Opens — Midnight open, 8:30 open, and True Day open (6 PM), each drawn as its own reference line.

Macros — Up to four editable macro windows, drawn as bracket lines on the 1-minute chart.


LOGIC STRUCTURE
-----------------------------------------------------------------------------------------------

Session Tracking

Each session's high and low are tracked while the session is active.

A level is published as live only after its extreme has held for ten minutes; when the session ends, the final extreme is locked and becomes sweepable.

Sweeps and Mitigation

Once locked, a level is considered swept when price trades through it.

With mitigated levels enabled, a swept level is parked at the sweep bar rather than removed.

Label Handling

Levels within the merge tolerance are combined into one label, with the most significant tag owning it.

Retention

The lookback setting controls how far back finished session, day, and week levels are kept.

Timeframe Filtering

Drawings appear only up to a chosen timeframe limit; macros draw only on the 1-minute chart.


INPUT CATEGORIES
-----------------------------------------------------------------------------------------------

General — Style preset, timeframe limit, lookback period, mitigated-level toggle, and label-merge controls.

Sessions — Per-session line and box toggles, colors, styles, thickness, and editable session times, plus shared label and box options.

Key Levels — Previous day, previous week, and All-Time High toggles and styling.

Key Opens — Midnight, 8:30, and True Day open toggles and styling.

Macros — Enable toggle, bracket styling, labels, and four editable macro windows.


USAGE GUIDELINES
-----------------------------------------------------------------------------------------------

ICT Killzones + Liquidity is suited for the review and documentation of session timing and liquidity.

Recommended educational workflows:

Study how price reacts at session highs and lows once they lock and become sweepable.

Review how sessions transition into one another across the day.

Keep prior sessions on the chart via the lookback setting to study multi-session structure.

Use the Clean preset for a minimal chart, or Default for full color coding.

Enable the macro windows on the 1-minute chart to study those specific time brackets.

The tool is oriented toward forex and futures, where these session times apply.


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

Session times are defined in New York time and are oriented toward forex and futures.

A session level publishes only after its extreme has held for ten minutes, so it appears slightly after the raw extreme.

Drawings are hidden above the chosen timeframe limit; macros are limited to the 1-minute chart.

The lookback setting and mitigated-level toggle change how many levels remain on the chart.

The lines, boxes, and labels are visual study aids only.

This tool does not include setups, entries, targets, or alerts.


ORIGINALITY AND ATTRIBUTION
-----------------------------------------------------------------------------------------------

The levels engine is written from scratch in Pine v6, using a session tracker with a ten-minute live-confirmation gate, a lock-then-sweep model, mitigated-level parking, significance-ranked label merging, a lookback-based retention system, All-Time High tracking, and two style presets.

Core concepts such as killzones, session liquidity, key opens, and ICT macros are publicly taught within ICT-style market education. This implementation was designed and engineered by TakingProphets.


TERMS AND DISCLAIMER
-----------------------------------------------------------------------------------------------

This indicator is for educational and informational use only. It does not provide financial advice or predictive output. Historical patterns do not guarantee future results. All users remain responsible for their own decisions. Use of this script implies agreement with TradingView's Terms of Use.
ملاحظات الأخبار
Minor bug fixes.
ملاحظات الأخبار
Minor bug fixes.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.