OPEN-SOURCE SCRIPT
Updated

AG Pro Kill Zone Session Engine [AGPro Series]

1 131
AG Pro Kill Zone Session Engine [AGPro Series]

Overview / What it does

AG Pro Kill Zone Session Engine is a session-based overlay designed to map the internal range behavior of selected intraday kill zones and preserve the most relevant reference levels after each zone has ended.

Instead of treating London, New York, Asia, and London Close as simple background highlights, this script organizes each enabled zone as a structured session event. During an active zone, it tracks the developing high, low, and optional midpoint. After the zone closes, it can carry those levels forward as clean horizontal references so traders can study how price interacts with prior session liquidity.

The script is built for users who want more context than a basic session coloring tool. It helps visualize where a session range formed, how wide it was relative to recent history, whether the session expanded or stayed narrow, and whether later price action interacted with that session through sweep-style behavior.

This is not a prediction engine and it does not attempt to forecast the next directional move. Its purpose is to structure session information into a cleaner analytical framework so traders can evaluate intraday context with more consistency.

Unique Edge

What makes this script different from a standard session indicator is that it does not stop at showing when a session is active.

Its core focus is session range formation plus post-session interaction. Each enabled kill zone can build a live range while active, then leave behind reference levels that remain usable after the session ends. This allows the chart to show not only where a session occurred, but also how later price responded to that session.

The script also adds session-width context. A zone can be classified relative to recent comparable zones so traders can quickly see whether the session was narrow, balanced, or expanded. That extra layer helps separate passive session activity from zones that created a more meaningful range.

Another important distinction is the sweep engine. Rather than only drawing static levels, the script can evaluate whether later price action interacts with prior session highs or lows in a sweep-oriented manner. This makes the tool more useful for traders who study liquidity behavior around specific intraday windows.

In short, this script is intended to function as a session behavior map, not as a simple background painter.

Methodology

The script works in four main steps.

1) Session detection
The user can enable or disable the supported kill zones individually and define session windows using a UTC offset and custom time settings. This keeps the script flexible across instruments, broker feeds, and local chart preferences.

2) Range construction
While a kill zone is active, the script updates the developing session high and low. Optional midpoint logic can also be shown. These values form the core session range for that specific zone.

3) Post-session reference mapping
When the zone ends, the completed high and low can remain on the chart as forward reference levels. This allows later price interaction to be evaluated against a completed session range rather than only during the active zone itself.

4) Sweep and width analysis
The script can evaluate reference-level interactions using its sweep logic and can also classify the completed width of a zone relative to prior zones of the same type. This helps the user distinguish between narrow, balanced, and expanded sessions.

Signals & Alerts

This script is primarily an analytical overlay, but it also supports alertable events around session activity and sweep behavior.

Depending on the enabled options, the script can be used to monitor:
- when a new kill zone becomes active,
- when price interacts with a prior session high,
- when price interacts with a prior session low,
- when sweep-oriented behavior is detected relative to a carried-forward reference range.

These events are designed to describe chart conditions, not to deliver standalone trade calls.

The visual outputs can include:
- session background shading,
- current and completed session high/low levels,
- optional midpoint levels,
- compact session summary labels,
- sweep markers,
- an information panel showing active zone status, width context, reference zone, and sweep status.

Key Inputs

The script includes a focused but flexible input set so users can adapt it without overcomplicating the chart.

Core controls include:
- UTC offset and custom session timing,
- individual enable/disable controls for Asia, London, New York, and London Close,
- high/low visibility,
- midpoint visibility,
- projection length for completed session levels,
- label density and summary behavior,
- panel visibility, placement, and text sizing,
- sweep mode and alert controls,
- visible session memory so the chart can stay cleaner on higher timeframes.

These controls allow the tool to be used in a more detailed mode on lower intraday charts or in a more compressed mode on higher timeframes.

Limitations & Transparency

This script is designed as a context tool. It does not define trade entries, stop placement, or risk management for the user.

Session behavior can vary across instruments and feeds, so identical settings may not produce equally meaningful output on every market. Some assets respond more clearly to session-based reference levels than others.

Sweep logic is also a chart-interpretation aid, not a certainty model. A detected sweep does not imply immediate reversal, continuation, or trade validity on its own. It simply highlights a specific type of interaction with a prior session reference.

The script is best suited to intraday analysis. While it can still display useful information on higher timeframes, the underlying logic is rooted in session behavior, so lower intraday charts will usually provide more direct visual relevance.

As with any visual overlay, increasing history depth or label density may add chart clutter. For that reason, the script includes controls to compress memory and reduce label load when needed.

Risk Disclosure

This script is provided for educational and analytical use only.

It is not financial advice, not a signal service, and not a promise of outcome. It does not guarantee reversals, breakouts, continuations, or profitable execution. Any trading decision should be made within the user's own process, risk model, and market understanding.

The intended use of this script is to help organize session structure, liquidity references, and post-session interaction on the chart so that traders can make more informed observations with a clearer visual framework.
Release Notes
TV-Safe Update Notes — V2.1

This update focuses on visual refinement, label organization, and overall chart readability. The core session logic remains consistent, while the presentation layer has been cleaned up to make the script easier to read in active intraday conditions.

What changed in this update:

- Refined label placement to reduce clustering around recent session activity.
- Increased separation between summary labels and sweep/event markers.
- Improved horizontal spacing for zone-specific labels, especially in overlapping London / New York activity.
- Reduced background intensity slightly for a cleaner chart presentation.
- Softened archived lines and supporting visuals so price action remains easier to follow.
- Standardized the panel header layout with a single merged top row and blue header styling.
- Kept the panel structure cleaner and more consistent for quick session status reading.
- Preserved the existing session-engine behavior while improving the visual balance of the overlay.

Practical result:

- Cleaner chart structure during multi-session overlap.
- Better readability in dense areas.
- More balanced visual hierarchy between active labels, historical references, and the info panel.

Notes:

This update is primarily a usability and presentation refinement. It does not represent a change in trading advice, prediction logic, or any promise of outcome. The script remains a session-structure and visualization tool designed to help users monitor key kill-zone behavior more clearly.

Risk Disclosure:

This script is for chart analysis and educational use only. It is not financial advice and does not guarantee results.
Release Notes
UPDATE NOTES - V3.0

Kill Zone Session Engine has been refined into a cleaner session-structure tool with stronger historical context, tighter multi-timeframe behavior, and a more polished AGPro presentation.

Highlights

- Added Session Memory Zones to project completed Asia, London, New York, and London Close ranges with clearer historical structure.
- Added Liquidity Reclaim Pockets after sweep-and-return behavior to make post-sweep reaction easier to read.
- Rebuilt the panel around the AGPro merged blue header standard with adjustable position, theme, and normal-default font sizing.
- Improved label spacing, marker offsets, and summary placement so the overlay stays cleaner during active intraday movement.
- Tightened projection depth and visible history on faster charts so 15m and 1h layouts remain readable.
- Refined reduced and higher-timeframe display behavior so 1h and 4h views stay informative without becoming overcrowded.
- Added an intraday-only guard so daily and weekly charts no longer print oversized session structures that do not belong on higher timeframes.
- Upgraded the settings with professional English tooltips and aligned the visual defaults with the AGPro palette.
- Kept the core workflow intact: session range building, width quality, sweep tracking, reference-zone context, and alert-ready behavior.

Result

- Cleaner session storytelling
- Better separation between active structure and archived structure
- Stronger sweep-to-reclaim readability
- More premium presentation for public release
Release Notes
🔧 UPDATE NOTES - V3.1

This update focuses on readability, session structure, visual clarity, performance, and usability.

The core purpose of the script remains unchanged.
This release improves how the existing kill-zone logic is presented, organized, and interpreted on the chart.

This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.


------------------------
What Changed
------------------------

• Rebuilt the session rendering layer
Asia, London, New York, and London Close are still tracked, but the visual engine is now cleaner and more optimized with a shared session loop instead of heavy repeated blocks.

• Added cleaner active-zone text handling
The active session zone can display compact centered text inside the zone, including width quality, sweep status, and session intent. Archived zone text is optional and disabled by default to prevent overlap.

• Improved reclaim pocket presentation
Liquidity reclaim pockets now use cleaner projected boxes with centered text and controlled retention so the chart remains readable.

• Refined sweep marker density
Sweep and reclaim markers are kept compact and capped by density settings to avoid excessive label stacking.

• Standardized the AG Pro panel
The panel header now follows the required single merged blue header row format and keeps the script name only in that first row.


------------------------
Visual Improvements
------------------------

• Improved chart readability by using active-zone text and cleaner archived memory zones instead of relying on many external session labels.

• Reduced visual clutter by shortening projections and limiting retained sweep markers, reclaim pockets, lines, and memory zones.

• Refined visual hierarchy so active sessions, completed memory zones, and reclaim pockets stand apart more clearly.

• Adjusted positioning of markers to keep them away from candles.

• Improved session zone readability without making the chart feel empty or overcrowded.


------------------------
Interface & Usability
------------------------

• Optimized panel layout for clearer session context.

• Added configurable panel position, panel theme, and panel font size controls.

• Added configurable label density and label font size controls.

• Adjusted default visual settings for a more balanced public screenshot.

• Enhanced overall user experience without changing the core session concept.


------------------------
Behavior Notes
------------------------

This update does not change the core analytical purpose of the script.

The goal is to improve clarity and usability, not to introduce new predictive behavior.

Users should interpret outputs the same way as before, but with improved visual structure and cleaner session context.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Session timing, exchange timezone differences, liquidity conditions, and timeframe selection may affect how kill zones, sweeps, and reclaim pockets appear.

Outputs should always be interpreted within broader market context.


------------------------
Risk Reminder
------------------------

This script is for educational and analytical purposes only.

It does not provide financial advice or guaranteed trading outcomes.

Users remain responsible for their own decisions.


------------------------
Suggested Publishing Tags
------------------------

kill-zone, session-analysis, liquidity-sweep, london-session, new-york-session, asia-session, ict, smart-money, intraday-trading, market-structure


------------------------
Suggested Screenshot Setup
------------------------

ETHUSDT 15m, BTCUSDT 15m, or EURUSD 15m usually gives a strong publication view with multiple session zones, readable sweeps, and enough session memory without overcrowding the chart.
Release Notes
UPDATE NOTES - V3.2

This update focuses on panel control, visible chart clarity, session-memory readability, and publication usability.

The core purpose of the script remains unchanged.
This release improves how the existing kill-zone session logic is presented, organized, and interpreted on the chart.

This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.


------------------------
What Changed
------------------------

- Added a complete panel location control.
The panel now supports top, middle, bottom, left, center, and right anchor positions for more flexible publication layouts.

- Improved panel show/hide and rebuild behavior.
Panel position, theme, and visibility changes are now handled cleanly so the panel keeps its intended layout and single merged header.

- Increased default visible session memory.
The default now keeps two completed session memory zones visible, giving screenshots a clearer session story without making the chart crowded.

- Refined visible chart label casing.
Sweep markers, reclaim labels, active zone text, pocket text, and session summaries now use readable premium casing.

- Preserved the core session engine.
Asia, London, New York, London Close, live range formation, completed ranges, sweep detection, reclaim pockets, session width classification, and alert logic remain aligned with the prior version.


------------------------
Visual Improvements
------------------------

- Moved active zone text out of transparent zone boxes and into separate filled center badges with white text.

- Locked session-zone labeling so every visible active or archived zone keeps a filled center badge.

- Added filled centered labels for reclaim pocket zones.

- Standardized visible chart labels, active zone badges, and sweep markers as white text inside filled label boxes.

- Improved chart readability by keeping marker text away from candles through the existing ATR label offset.

- Kept active session zones centered with compact multi-line text.

- Reframed active and archived zone text controls as detail controls; compact filled badges remain visible when details are reduced.

- Shortened archived zone badges and reclaim pocket prefixes to reduce overlap on compressed intraday views.

- Added a higher-intraday compact mode for 4H and above. It keeps visible zones labeled, but reduces memory zones, pocket zones, event labels, and zone-badge detail to prevent clutter.

- Added visual range padding for higher-intraday session zones so compact 4H zones read as premium bands instead of thin, crowded fragments.


------------------------
Interface & Usability
------------------------

- Kept panel show/hide, theme, location, and font-size controls available from settings.

- Kept label font-size control with Normal as the default for session labels, sweep markers, and centered zone text.

- Added center panel placements for cleaner layout choices.

- Maintained the single merged blue AG Pro panel header.


------------------------
Behavior Notes
------------------------

This update does not change the core analytical logic of the script.

The goal is to improve clarity and usability, not to introduce new predictive behavior.

Users should interpret outputs the same way as before, but with improved chart text, session-memory visibility, and panel placement control.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Market conditions such as volatility, liquidity, timeframe differences, symbol behavior, and session timing conventions may affect how zones, sweeps, and reclaim pockets appear.

Outputs should always be interpreted within broader market context.


------------------------
Risk Reminder
------------------------

This script is for educational and analytical purposes only.

It does not provide financial advice or guaranteed trading outcomes.

Users remain responsible for their own decisions.
Release Notes
UPDATE NOTES - v3.3

This update focuses on label placement and readability.

The core purpose of the script remains unchanged. This release improves how the
existing session zones, sweep markers, reclaim pockets, and panel read on the
chart, with cleaner badge placement and theme-aware text.

This script continues to function as an analytical and visualization tool. It
does not attempt to predict price direction or provide guaranteed outcomes.


------------------------
What Changed
------------------------

- Session zone badges moved off the candles
The active and archived session zone badges (London, New York, Asia, London
Close) now sit at the right edge of their zone and stay vertically centered,
instead of floating in the middle of the zone where they could overlap candles
and stack on top of each other.

- Reclaim pocket badges moved to the right edge
Reclaim pocket labels now sit at the right edge of their pocket, away from the
candles, so small pockets remain readable.

- Theme-aware text everywhere
Session zone badges, sweep markers, reclaim pocket labels, and every colored
panel value now choose a text color that reads clearly on each session color,
using a brightness-accurate method so blue, amber, mint, indigo, and pink fills
all stay readable on both light and dark backgrounds.


------------------------
Visual Improvements
------------------------

- Session and pocket badges sit at the right edge of their zones, away from
candles, reducing overlap.

- Contrast-safe zone, marker, pocket, and panel text on every session color.

- Preserved the familiar session zone, high/low line, and midline layout.

- Cleaner first-glance separation between stacked session zones.


------------------------
Interface & Usability
------------------------

- Cleaner, more readable session and pocket labeling.

- Improved panel contrast across all rows on both themes.

- Adjusted default visual presentation for a more balanced, premium appearance.

- Enhanced overall user experience without changing core logic.


------------------------
Behavior Notes
------------------------

This update does not change the core analytical logic of the script.

The session mapping for Asia, London, New York, and London Close, the live range
formation, the completed-width classification, the reference sweep and reclaim
detection, the session intent read, and the panel statistics all behave exactly
as before.

Users should interpret outputs the same way as before, but with cleaner badges
and a more readable presentation.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool and is intended for intraday
timeframes.

Market conditions such as volatility, liquidity, and timeframe differences may
affect how session zones and sweeps appear. Outputs should always be interpreted
within broader market context.


------------------------
Risk Reminder
------------------------

This script is for educational and analytical purposes only.

It does not provide financial advice or guaranteed trading outcomes. Users
remain responsible for their own decisions.
Release Notes
🔧 UPDATE NOTES - v3.4

This update adds a clear next-action row and a reclaim follow-rate proof.

The core purpose of the script remains unchanged.
It continues to map Asia, London, New York and London Close sessions, track ranges, sweeps,
reclaim pockets and session intent, with the same clean chart-first workflow.

This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.

------------------------
What Changed
------------------------

- Action row
The panel now translates the current session context into a single, plain next-step
read such as Track Bull Reclaim, Review Sweep, Track Lower Hold, or Wait Next Open.

- Reclaim Rate proof layer
The panel now reports how often reclaim pockets historically followed through in the reclaim
direction before moving against it, shown with the sample count for transparency.

- Reclaim Proof Window input
A new setting controls the window used to measure reclaim follow-through.

- Per-pocket counting
Each reclaim pocket is counted once, so the rate is an honest measure of follow-through on the
selected market and timeframe.

------------------------
Visual Improvements
------------------------

- Preserved the clean session memory zones, centered zone badges and reference lines

- Kept sweep and reclaim markers readable on filled colored badges

- Maintained candle-clear spacing so key elements stand out

- Left the publication-ready chart layout intact

------------------------
Interface & Usability
------------------------

- Added an Action row near the top for an immediate next-step read

- Added a Reclaim Rate row for an at-a-glance follow-through track record

- Added a window setting so the proof measures prompt follow-through

- Enhanced overall user experience without changing the core session logic

------------------------
Behavior Notes
------------------------

This update does not change the core analytical logic of the script.

Session detection, width classification, sweep status and intent are unchanged. The Action row
restates existing context, and the Reclaim Rate is a separate historical track-record layer.

------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Market conditions such as volatility, liquidity, and timeframe differences may affect how
sessions, sweeps, pockets and the rate appear.

Outputs should always be interpreted within broader market context.

------------------------
Risk Reminder
------------------------

This script is for educational and analytical purposes only.

It does not provide financial advice or guaranteed trading outcomes.

Users remain responsible for their own decisions.
Release Notes
Version 3.7 – Alternating Story Lanes and Current-Context Focus

This update improves chart balance and first-glance readability by distributing recent session stories across separate visual lanes while keeping the active analytical area focused. The session engine, scoring model, proof statistics, and alert behavior remain unchanged.

• Alternated Balanced-mode London Close story labels above and below completed sessions to create a clearer visual rhythm across the time axis.

• Retained up to six recent daily story labels in Balanced mode so the chart remains informative without concentrating every annotation near the latest candles.

• Limited Balanced-mode session memory to the current completed zone, preventing older memory boxes from competing with the active context.

• Limited Balanced-mode reclaim-pocket history to the current pocket and reduced retained sweep markers to prevent stacked text in the latest price area.

• Anchored compact story labels to each completed session’s closing bar, improving chronological alignment between the label and the session it describes.

• Preserved all underlying session detection, sweep and reclaim logic, panel calculations, proof metrics, and alerts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.