TraderSentiments
MetaTrader MT4 Indicator 100% Free MQL Source Code

Trading Sessions & Killzones MT4 Indicator

RaptozGroupBy RaptozGroup•
4.9 (120 reviews)
•15,000+ Downloads•
Session Boxes MT4 Indicator Setup

Trading Sessions & Killzones MT4 Indicator showing Asian, London, and NY boxes.

Trading Sessions & Killzones MT4 Indicator is a free RaptozGroup indicator for MetaTrader 4. Broker/server-time sessions; overnight ranges supported. Daylight-saving changes require input changes. Current session ranges update with incoming ticks.

Trading Sessions & Killzones MT4 Indicator Overview

Version 3.00 implementation: Broker/server-time sessions; overnight ranges supported. Daylight-saving changes require input changes. Current session ranges update with incoming ticks. Test on a demo chart; this release does not claim identical results to third-party indicators.

What Are Trading Sessions & Institutional Killzones in Forex?

The global foreign exchange and CFD markets operate 24 hours a day, 5 days a week, but institutional trading volume and market liquidity are heavily concentrated around specific geographic financial centres: Tokyo (Asian Session), London (European Session), and New York (US Session).

The Trading Sessions & Killzones MT4 Indicator automatically draws color-coded rectangular shaded boxes highlighting each active session range, plots Previous Session Highs/Lows, and demarcates high-probability ICT Killzones (London Open, New York Open, and London Close) with automatic broker GMT time offset synchronization.

The 3 Global Market Sessions & Their Behaviors

1. Asian Session (Tokyo)

00:00 – 08:00 GMT. Characterized by low volatility consolidation, establishing key liquidity boundaries above/below the range.

2. London Session (Europe)

07:00 – 16:00 GMT. Highest trading volume where the true High or Low of the day (Judas Swing) is frequently created.

3. New York Session (US)

12:00 – 21:00 GMT. High-impact news releases (NFP, CPI, FOMC) and institutional trend continuation or reversal.

ICT Killzones: The Institutional Volatility Windows

In Smart Money Concepts trading, specific high-liquidity intervals within the broader sessions are known as Killzones:

Killzone NameEST Time (New York)GMT Standard TimeInstitutional Behavior
Asian Killzone20:00 – 00:00 EST01:00 – 05:00 GMTInitial consolidation; establishes key liquidity targets for London.
London Open Killzone02:00 – 05:00 EST07:00 – 10:00 GMTJudas Swing stop hunts sweeping Asian High/Low before expanding.
New York Open Killzone07:00 – 10:00 EST12:00 – 15:00 GMTMajor US economic data releases and trend continuation expansions.
London Close Killzone10:00 – 12:00 EST15:00 – 17:00 GMTEuropean desk daily book balancing and intraday trend retracements.

Pro Trader Execution Rules for Session Trading

  • The London Judas Swing Setup: Watch for London Open (07:00-08:30 GMT) to spike beyond the Asian Range High or Low to engineer liquidity before moving aggressively in the true direction of the day.
  • Previous Day High (PDH) and Low (PDL) Interaction: Note how New York session often respects or sweeps the high/low established during London.
  • Auto GMT Offset Calibration: The indicator automatically syncs broker server time to true UTC/GMT, eliminating manual time calculations.

Supported MT4 Timeframes & Visual Box Modes

TimeframeTrading StyleVisual Display
M1 / M5Micro ScalpingFull killzone shaded boxes + session high/low breakout levels.
M15 / M30Intraday TradingShaded session boxes showing Tokyo, London, and New York boundaries.
H1Session MappingSession range lines and previous session open/close price markers.

Key Features & Capabilities

Three configurable broker-time sessions
Overnight session support
High/low range boxes and optional boundaries
Live current-session range updates

Input Parameters & Settings Guide

Configure the indicator inputs inside MetaTrader MT4 via the Inputs tab upon attaching to your chart:

ParameterDefault ValueDescriptionRecommended
AsianSession00:00-08:00Broker/server timeDemo-test first
LondonSession08:00-16:00Broker/server timeDemo-test first
NewYorkSession13:00-21:00Broker/server timeDemo-test first
LookbackDays10Days of history, maximum 90Demo-test first
ShowHighLowtrueSession range boundariesDemo-test first
AsianColorclrDarkSlateGraySee implementation notes.Demo-test first
LondonColorclrDarkGreenSee implementation notes.Demo-test first
NewYorkColorclrMaroonSee implementation notes.Demo-test first

Trading Strategy & Entry Rules

1

Step 1: Mark Asian Session Range

Observe the Asian Session box (00:00-08:00 GMT) and mark its high and low boundaries.

2

Step 2: Wait for London Open Judas Swing

During the London Open Killzone (07:00-10:00 GMT), look for price to sweep the Asian High (for shorts) or Asian Low (for longs).

3

Step 3: Enter on M5 CHoCH Reversal

On the 5-minute chart, enter when price breaks internal structure following the session liquidity sweep.

4

Step 4: Target New York Session Continuation

Hold the position through the New York Open Killzone as institutional momentum expands.

MQL4 Source Code

Loading complete source file…

How to Install & Compile in MetaTrader MT4

Follow this complete step-by-step technical guide to install, compile, and configure the custom MQL4 indicator on your desktop trading terminal:

Step 1

Download Source File

Download the raw .mq4 source file to your computer using the direct download button below.

Step 2

Open MT4 Data Folder

Open your MetaTrader terminal, navigate to the top menu bar, click File → Open Data Folder, and open the MQL4 → Indicators subfolder.

Step 3

Copy & Compile in MetaEditor

Paste the downloaded file into the Indicators directory. Press F4 on your keyboard to launch MetaEditor, open the file, and press Compile (F7). Ensure the compiler reports 0 errors and 0 warnings.

Step 4

Attach to Chart & Configure

Return to your terminal, refresh the Navigator (Ctrl+N) panel, drag the indicator onto your active chart, and customize input parameters. These downloads do not require DLL imports.

Integrating with Expert Advisors (EA) via iCustom()

Buffer meanings differ between indicators. Check SetIndexBuffer and the plot labels in the complete source before using iCustom. A moving-average value is not a buy signal. Object-based zones and dashboards do not expose their drawings as signal buffers.

Institutional Risk Management & Capital Preservation Protocol

Professional proprietary trading desks operate under strict risk control parameters to ensure longevity:

  • Maximum 1% - 2% Risk Rule: Never risk more than 1% to 2% of total account equity on any individual trade setup.
  • Minimum 1:2.5 Risk-to-Reward Ratio (RRR): Only execute setups where the potential profit target is at least 2.5 times greater than the stop-loss invalidation distance.
  • Multi-Timeframe Confluence Required: Never take an intraday trade against the primary Daily or 4-Hour trend direction.
  • High-Impact Economic News Awareness: Avoid entering new positions 15 minutes before and after major macroeconomic data releases (such as US Non-Farm Payrolls, CPI Inflation, and central bank FOMC/ECB interest rate announcements).

Strategy Backtesting & Historical Modeling Protocol

Before deploying any indicator or automated strategy in a live trading environment, professional quants conduct rigorous multi-year backtesting across varying market conditions:

  • 99.9% Tick Data Modeling: Use high-precision tick history from reputable data providers (such as Dukascopy or TrueFX) to eliminate spread anomalies and slippage distortion.
  • Spread & Commission Inclusion: Always test with realistic variable spreads and broker commission structures to simulate true real-world execution friction.
  • Out-of-Sample Walk-Forward Optimization: Avoid curve-fitting by validating parameters on 70% in-sample data and testing robustness on 30% out-of-sample data.
  • Monte Carlo Drawdown Analysis: Run randomized trade sequence simulations to calculate the maximum potential drawdown under adverse market volatility regimes.

Virtual Private Server (VPS) & Execution Latency Optimization

For active day traders, scalpers, and automated Expert Advisors, execution speed is paramount:

  • Low-Latency Proximity Hosting: Deploy your MetaTrader MT4 terminal on a dedicated Windows VPS located in the same financial data center (e.g. Equinix LD4 in London or NY4 in New York) as your broker server to achieve sub-millisecond execution times.
  • Terminal Memory Optimization: Go to Tools → Options → Charts and decrease Max bars in chart to 5,000 to conserve CPU and RAM resources.
  • Audio & News Feed Disabling: Turn off unneeded terminal audio event chimes and background news feeds to ensure 100% of CPU cycles are dedicated to indicator calculations.

Common MetaTrader Error Codes & Resolution Matrix

Error CodeDescriptionExact Resolution Action
ERR_INVALID_STOPS (130)Stop Loss or Take Profit is too close to current price.Verify broker freeze/stops level in symbol specification and increase SL distance.
ERR_OFF_QUOTES (136)Broker server has no available liquidity quotes.Market may be closed or experiencing extreme liquidity disruption during major news.
ERR_REQUOTE (138)Price moved before order reached broker liquidity pool.Increase slippage tolerance deviation parameter in your order execution settings.
ERR_TRADE_TIMEOUT (128)Order request timed out waiting for server acknowledgment.Check internet connection latency or migrate terminal to a dedicated trading VPS.

Institutional Quantitative Trading Lexicon

Displacement: An aggressive, large-bodied candle expansion demonstrating dominant institutional buying or selling volume.
Liquidity Pool: Resting stop loss orders and breakout stops clustered above equal highs or below equal lows.
Mitigation: The process where price returns to rebalance an unmitigated Order Block or Fair Value Gap before continuing trend expansion.
Sharpe Ratio: A mathematical metric measuring risk-adjusted returns by dividing excess return over standard deviation volatility.

Broker Execution Models & Raw Spread Compatibility

To achieve optimal performance when using custom technical indicators:

  • ECN / Raw Spread Accounts: Use True ECN accounts with 0.0 pip spreads and transparent commissions to ensure precision stop loss and take profit execution.
  • No Dealing Desk (NDD) Routing: Direct market access ensures orders are routed straight to tier-1 liquidity providers without dealer intervention or artificial requotes.
  • Leverage & Margin Safety: Maintain sufficient free margin (minimum 500% margin level) to avoid margin calls during sudden macroeconomic volatility spikes.

TradingSessions_Boxes_MT4.mq4

Version: v3.00File Size: 7.6 KBTotal Downloads: 15,000+Access: Free source downloadPlatform: MetaTrader MT4

Download .mq4

Already using MetaTrader? Download the compiled .ex4 file and place it in MQL4/Indicators.

Standalone source • No DLL dependencies
15,000+ DownloadsCompatible with MT4 Build 1420+

Frequently Asked Questions

With InpAutoGMTOffset set to true, the indicator automatically calculates the broker's server time difference against GMT and updates seamlessly during US/European DST clock shifts.
RaptozGroup
Developed & Audited by RaptozGroup

Quantitative algorithmic trading research desk specializing in MetaTrader MQL4/MQL5 automated systems, institutional order book mechanics, and risk management tools.