OPEN-SOURCE SCRIPT
Killzone Cartograph [JOAT]

Killzone Cartograph
Introduction
Killzone Cartograph is an advanced open-source session structure mapper built around ICT (Inner Circle Trader) concepts. It automatically detects and renders the major institutional trading sessions — Asia, London, New York, and London Close — as color-coded boxes on the chart, calculates deviation projections from session ranges, tracks the New York Midnight Open as a key reference level, measures session dominance, detects session overlaps, and provides session bias signals. The indicator transforms raw time-of-day data into a structured visual map of when and where institutional activity concentrates.
The reason this indicator exists is that price does not move randomly throughout the day. Institutional order flow clusters around specific session windows — the "killzones" — where liquidity is deepest and the largest moves originate. Retail traders who ignore session structure often enter during low-liquidity periods (getting chopped) or miss the high-probability windows entirely. Killzone Cartograph makes session structure visible so traders can align their activity with institutional timing.

Core Concepts
1. Session Killzone Detection and Rendering
Each session is defined by a time window and timezone. The indicator detects when the current bar falls within each session and renders a box from the session's high to low, extending as the session progresses:
Each session box is rendered with a distinct color from a muted institutional palette — tyrian violet for Asia, cardinal for London, cerulean for New York, and gunmetal for London Close. Box borders use the session color while fills use high transparency to avoid obscuring price action.
2. Deviation Projections
Once a session's range is established, the indicator projects deviation levels above and below the session high and low. These projections use configurable multipliers of the session range to identify where price might reach if it breaks out of the session box. This concept is rooted in the ICT framework where session ranges serve as measuring sticks for subsequent moves:
Pine Script®
Deviation levels are drawn as dashed lines extending from the session box, providing visual targets for breakout moves.
3. New York Midnight Open Reference
The NY Midnight Open (the opening price at 00:00 New York time) is a key ICT reference level. It serves as a daily bias marker — price above the midnight open suggests bullish daily bias, below suggests bearish. The indicator tracks this level and draws it as a horizontal reference line across the chart. Many institutional algorithms reference this level for daily positioning decisions.
4. Session Dominance and Overlap Detection
The indicator tracks which session produces the largest range each day and identifies it as the "dominant" session. It also detects when sessions overlap (London/New York overlap is particularly significant as it produces the highest liquidity of the day). Overlap periods are highlighted because they often generate the most significant price moves.
5. Session Bias Signals
At the close of each session, the indicator evaluates the session's price action to determine bias:
These bias arrows appear at session boundaries to provide quick directional context for the next session.
6. Killzone Strength Scoring
Each killzone receives a strength score based on the session's range relative to the daily ATR, volume during the session, and whether the session produced a directional move or just chopped. Higher scores indicate more significant sessions that are more likely to set the tone for subsequent price action.
Features
Input Parameters
Session Windows:
Deviation:
Reference Levels:
Visuals:

How to Use This Indicator
Step 1: Identify the Active Session
The colored box tells you which session is currently active. Focus your trading during the session windows where you have the most experience and where your strategy performs best.
Step 2: Use Session Ranges as Context
The Asia session range often serves as the "initial balance" for the day. Watch for London to sweep one side of the Asia range (a liquidity grab) before establishing the daily direction. The New York session then either confirms or reverses the London move.
Step 3: Trade Deviation Projections
When price breaks out of a session box, the deviation projection lines provide measured-move targets. These are not guaranteed levels but represent statistically common extension distances based on the session's own range.
Step 4: Reference the Midnight Open
Use the NY Midnight Open as a daily bias filter. If price is above the midnight open, favor long setups. If below, favor short setups. This simple filter aligns your trading with the daily institutional bias.
Step 5: Prioritize Overlap Windows
The London/New York overlap (typically 0700-1000 NY time) produces the highest liquidity and often the day's most significant move. This is the highest-probability window for directional trades.
Close-up of the London/New York overlap period showing session boxes overlapping, deviation projections extending from the London range, and the NY Midnight Open reference line with price reacting to it
Indicator Limitations
Originality Statement
This indicator is original in its comprehensive integration of ICT session concepts into a unified mapping system. While session boxes and killzone detection exist in other scripts, this indicator is justified because:
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Session structures, deviation projections, and bias signals are based on historical patterns of institutional activity and do not guarantee future price behavior. Market conditions change, and sessions that historically produced strong moves may not always do so. Always use proper risk management and conduct your own analysis. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
Introduction
Killzone Cartograph is an advanced open-source session structure mapper built around ICT (Inner Circle Trader) concepts. It automatically detects and renders the major institutional trading sessions — Asia, London, New York, and London Close — as color-coded boxes on the chart, calculates deviation projections from session ranges, tracks the New York Midnight Open as a key reference level, measures session dominance, detects session overlaps, and provides session bias signals. The indicator transforms raw time-of-day data into a structured visual map of when and where institutional activity concentrates.
The reason this indicator exists is that price does not move randomly throughout the day. Institutional order flow clusters around specific session windows — the "killzones" — where liquidity is deepest and the largest moves originate. Retail traders who ignore session structure often enter during low-liquidity periods (getting chopped) or miss the high-probability windows entirely. Killzone Cartograph makes session structure visible so traders can align their activity with institutional timing.
Core Concepts
1. Session Killzone Detection and Rendering
Each session is defined by a time window and timezone. The indicator detects when the current bar falls within each session and renders a box from the session's high to low, extending as the session progresses:
- Asia Session: Typically 2000-0000 NY time. Often establishes the initial range that London and New York will sweep
- London Session: Typically 0200-0500 NY time. The first major liquidity injection of the day, frequently setting the daily direction
- New York Session: Typically 0700-1000 NY time. The highest-volume window where the London move is either confirmed or reversed
- London Close: Typically 1000-1200 NY time. A secondary window where institutional position management creates distinct price patterns
Each session box is rendered with a distinct color from a muted institutional palette — tyrian violet for Asia, cardinal for London, cerulean for New York, and gunmetal for London Close. Box borders use the session color while fills use high transparency to avoid obscuring price action.
2. Deviation Projections
Once a session's range is established, the indicator projects deviation levels above and below the session high and low. These projections use configurable multipliers of the session range to identify where price might reach if it breaks out of the session box. This concept is rooted in the ICT framework where session ranges serve as measuring sticks for subsequent moves:
Deviation levels are drawn as dashed lines extending from the session box, providing visual targets for breakout moves.
3. New York Midnight Open Reference
The NY Midnight Open (the opening price at 00:00 New York time) is a key ICT reference level. It serves as a daily bias marker — price above the midnight open suggests bullish daily bias, below suggests bearish. The indicator tracks this level and draws it as a horizontal reference line across the chart. Many institutional algorithms reference this level for daily positioning decisions.
4. Session Dominance and Overlap Detection
The indicator tracks which session produces the largest range each day and identifies it as the "dominant" session. It also detects when sessions overlap (London/New York overlap is particularly significant as it produces the highest liquidity of the day). Overlap periods are highlighted because they often generate the most significant price moves.
5. Session Bias Signals
At the close of each session, the indicator evaluates the session's price action to determine bias:
- If the session closed in its upper third with expanding range, bullish bias is assigned
- If the session closed in its lower third with expanding range, bearish bias is assigned
- Otherwise, neutral bias is assigned
These bias arrows appear at session boundaries to provide quick directional context for the next session.
6. Killzone Strength Scoring
Each killzone receives a strength score based on the session's range relative to the daily ATR, volume during the session, and whether the session produced a directional move or just chopped. Higher scores indicate more significant sessions that are more likely to set the tone for subsequent price action.
Features
- Session Box Rendering: Automatically drawn boxes for each session with configurable colors, extending as the session progresses and finalizing at session close
- Deviation Projection Lines: Dashed lines at configurable multiples of the session range, projecting potential breakout targets
- NY Midnight Open Line: Persistent horizontal reference at the 00:00 NY open price, updated daily
- Previous Day High/Low Levels: Horizontal lines marking the prior day's extremes as key support/resistance references
- Session Overlap Highlighting: Background coloring during session overlap periods (particularly London/NY overlap)
- Dominance Coloring: The dominant session's box receives enhanced visual treatment to stand out
- Session Bias Arrows: Directional arrows at session boundaries indicating the session's concluded bias
- Killzone Strength Score: Numerical score for each session displayed in the dashboard
- Session Bar Coloring: Optional bar coloring that tints candles based on which session they belong to
- 16-Row Dashboard: Displays current session, session high/low/range, deviation levels, midnight open, daily bias, dominant session, overlap status, killzone scores, and previous day levels
Input Parameters
Session Windows:
- Asia/London/New York/London Close session times: Configurable time windows in exchange timezone
- Timezone: Timezone for session calculations (default: America/New_York)
Deviation:
- Deviation Multiplier: Multiple of session range for projection lines (default: 1.0)
- Show Deviations: Toggle deviation projection lines
Reference Levels:
- Show Midnight Open: Toggle NY Midnight Open reference line
- Show Previous Day H/L: Toggle prior day's high and low levels
Visuals:
- Toggles for each session's box rendering, bias arrows, bar coloring, overlap background, and dashboard
- Individual color inputs for each session
How to Use This Indicator
Step 1: Identify the Active Session
The colored box tells you which session is currently active. Focus your trading during the session windows where you have the most experience and where your strategy performs best.
Step 2: Use Session Ranges as Context
The Asia session range often serves as the "initial balance" for the day. Watch for London to sweep one side of the Asia range (a liquidity grab) before establishing the daily direction. The New York session then either confirms or reverses the London move.
Step 3: Trade Deviation Projections
When price breaks out of a session box, the deviation projection lines provide measured-move targets. These are not guaranteed levels but represent statistically common extension distances based on the session's own range.
Step 4: Reference the Midnight Open
Use the NY Midnight Open as a daily bias filter. If price is above the midnight open, favor long setups. If below, favor short setups. This simple filter aligns your trading with the daily institutional bias.
Step 5: Prioritize Overlap Windows
The London/New York overlap (typically 0700-1000 NY time) produces the highest liquidity and often the day's most significant move. This is the highest-probability window for directional trades.
Close-up of the London/New York overlap period showing session boxes overlapping, deviation projections extending from the London range, and the NY Midnight Open reference line with price reacting to it
Indicator Limitations
- Session times are fixed inputs based on typical institutional schedules. During daylight saving time transitions, session windows may need manual adjustment depending on your broker's timezone handling
- Session structure analysis is most relevant for forex, futures, and indices that have distinct session-based liquidity patterns. Crypto markets trade 24/7 with less distinct session boundaries
- Deviation projections are statistical tendencies, not guaranteed levels. Price may fall short of or exceed projected deviations
- The NY Midnight Open is a reference level, not a support/resistance level with inherent strength. Its significance comes from institutional algorithm behavior, which may vary
- Session dominance and bias signals are determined after the session closes, making them useful for context but not for real-time entries within that session
- On higher timeframes (4H, Daily), individual session boxes may not render meaningfully as multiple sessions fit within a single candle
Originality Statement
This indicator is original in its comprehensive integration of ICT session concepts into a unified mapping system. While session boxes and killzone detection exist in other scripts, this indicator is justified because:
- The deviation projection system uses the session's own range as a measuring stick, providing context-specific targets rather than generic ATR-based projections
- Killzone strength scoring quantifies session significance using range, volume, and directional metrics — providing an objective measure not available in simple session box indicators
- Session overlap detection with visual highlighting identifies the highest-liquidity windows automatically
- The integration of NY Midnight Open, previous day levels, session bias, and dominance tracking into a single tool eliminates the need for multiple separate session indicators
- Session bias arrows provide actionable directional context at session boundaries based on multi-factor analysis of the concluded session
- The muted institutional color palette and clean box rendering avoid the visual clutter common in session-based indicators
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Session structures, deviation projections, and bias signals are based on historical patterns of institutional activity and do not guarantee future price behavior. Market conditions change, and sessions that historically produced strong moves may not always do so. Always use proper risk management and conduct your own analysis. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.