Blog / Strategy
Strategy

Garman Klass Volatility Breakout

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Garman Klass Volatility Breakout is a volatility-ignition breakout strategy for MetaTrader 5 built around the Garman-Klass volatility estimator — a statistical measure that uses the full Open, High, Low, and Close (OHLC) of every candle to gauge how much "energy" a market is releasing. Where a simple close-to-close calculation throws away everything that happened inside a bar, and a raw high-minus-low range ignores where price opened and closed, the Garman-Klass estimator blends both, making it roughly five times more statistically efficient at reading true volatility. This strategy uses that reading to detect the exact moment a quiet market ignites into a directional move.

At its core, the approach is designed for one recurring market condition: a compression-then-expansion transition. Markets frequently spend long stretches trading in a narrow, low-energy range before releasing that stored tension in a sharp, directional breakout. The strategy watches for a stretch of "normal" volatility, then waits for a single candle whose Garman-Klass volatility jumps far above that baseline — a genuine expansion, not just one more noisy bar. Only when that ignition candle also breaks out of the recent price box does the strategy signal an entry.

As a learning tool, this strategy suits traders who want to understand how professional-grade volatility estimators can be turned into an objective, rule-based breakout filter. It is best studied as an example of breakout and volatility-regime analysis rather than as a shortcut to results. If you are curious about how OHLC-based volatility math, price-box breakouts, and ATR-based risk control fit together in a single automated system, this Expert Advisor (EA) offers a clean, symmetric template to study.

How It Works

The Garman Klass Volatility Breakout evaluates the market once per completed candle. It measures a volatility baseline, tests whether the newest candle "ignites," confirms direction, and then places a trade with predefined risk. Here is the step-by-step logic in plain English.

Baseline measurement (the "normal" state):

Ignition test (the volatility spike):

Directional confirmation (which way, and did it break out):

Stop-loss logic:

Take-profit logic:

Trade management:

Garman Klass volatility breakout MT5
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
BaselinePeriod 20 10 60 Number of completed bars behind the trigger candle used to compute the volatility baseline and the breakout price box.
ExpansionFactor 1.8 1.2 3.5 Ignition threshold: the trigger candle's Garman-Klass volatility must be at least this multiple of the baseline volatility.
ClosePositionPct 0.66 0.50 0.90 Directional confirmation: the close must sit in the top (long) or bottom (short) fraction of the trigger candle's range.
AtrPeriod 14 7 30 Number of bars used to calculate the ATR that sizes the protective stop.
AtrStopMult 2.0 1.0 4.0 Stop-loss distance as a multiple of ATR from the entry price.
RewardRiskRatio 1.8 1.0 4.0 Take-profit distance expressed as a reward-to-risk multiple of the stop distance.
Lots 0.10 0.01 1.0 Fixed trade volume in lots for each position.
Garman Klass volatility breakout MT5 — MQL5 source code

Recommended Chart Settings

This strategy is timeframe-agnostic by design — every calculation uses the chart's primary timeframe, so it runs on whatever period you attach it to. For studying breakout behavior, intraday timeframes such as the H1 (1-hour) or M15 (15-minute) charts on liquid major forex pairs (for example EUR/USD or GBP/USD) are a sensible starting point, because they produce enough compression-expansion cycles to observe the logic in action without excessive noise.

Because the Garman-Klass estimator reads OHLC energy directly, the strategy behaves differently across instruments with different volatility characteristics. A pair that trends smoothly will produce different signals than a choppy, mean-reverting one. Always remember that results will vary considerably across symbols, timeframes, and market conditions, and that any settings you study should be validated on a demo account before anything else.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every strategy has strengths and blind spots, and studying both is the point of an exercise like this.

Strengths of this approach:

Known limitations:

Where it may underperform:

Study this EA as an analytical template. It historically signals on a specific, recognizable market transition — it is not a set-and-forget solution, and it should never be treated as one.

Risk Management Tips

Sound risk management matters far more than any single entry rule. As you study this or any strategy, keep these principles in mind:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog