Concept

Garman-Klass–Yang-Zhang Hybrid

Garman-Klass–Yang-Zhang Hybrid is a Volatility concept. The Library holds 1 implementation, a working definition you can pull into Quant.

GKYZ

Top Garman-Klass–Yang-Zhang Hybrid indicator

The top custom implementation, built on the original standard Garman-Klass–Yang-Zhang Hybrid formula.

1 total

This Garman-Klass–Yang-Zhang Hybrid implementation is strategy-ready: open it in Quant, set your rules, and it backtests automatically.

What is the Garman-Klass–Yang-Zhang Hybrid?

The Garman-Klass–Yang-Zhang hybrid (GKYZ) is the Garman-Klass estimator patched for overnight gaps. Its per-bar variance prepends one term to the classic formula: the squared log return from the prior close to today's open. In full: squared log of open over previous close, plus half the squared log of high over low, minus (two times the natural log of two, minus one) times the squared log of close over open. The added term books the gap risk plain Garman-Klass silently drops, which matters for stocks, session-break futures, and anything that reprices on closed-market news.

The name is a genealogy. Mark Garman and Michael Klass published the original estimator in the Journal of Business in 1980 assuming zero drift and no opening jump. Dennis Yang and Qiang Zhang's 2000 paper in the same journal, Drift-Independent Volatility Estimation Based on High, Low, Open, and Close Prices, tackled both weaknesses at once. The hybrid sits between the two: practitioner references and charting libraries took the 1980 formula and bolted on the overnight term associated with the 2000 work, so it carries both names without being either paper's headline result.

GKYZ keeps the zero-drift assumption, so it is not the full Yang-Zhang estimator, which blends overnight variance, open-to-close variance, and the drift-independent Rogers-Satchell term under a variance-minimizing weight. GKYZ is the pragmatic middle: gap-aware, cheap to compute bar by bar, and a common volatility engine for bands and adaptive filters, but still biased when the market carries a persistent trend.

The appeal is that total variance splits into visible parts. Close-to-close realized volatility sees the gap but wastes the intrabar path; plain Garman-Klass sees the path but not the gap; GKYZ counts both, so its reading tracks risk on instruments where a meaningful share of movement happens while the market is closed. Unlike ATR, which folds gaps into a smoothed price-unit range, GKYZ returns an annualized statistical volatility that can be compared across instruments and against options-market figures.

How to identify GKYZ on a chart

GKYZ is a computed volatility series, so identification means recognizing its plot and verifying the formula behind the label, which is frequently misapplied in scripts.

  1. 1Add a GKYZ indicator, such as loxx's Garman-Klass-Yang-Zhang Historical Volatility Bands; expect an annualized volatility line in a subpane or bands around price.
  2. 2Verify the formula in the source or documentation: the tell is a squared close-to-open (overnight) term in addition to the high-low and open-close terms.
  3. 3Run the gap test: after a large opening gap with a quiet session, GKYZ jumps while plain Garman-Klass stays flat; if the plotted line ignores the gap, the label is wrong.
  4. 4On round-the-clock markets, expect GKYZ and Garman-Klass to overlap almost exactly, since opens sit at prior closes and the overnight term contributes nearly nothing.
  5. 5Compare envelope behavior against ATR bands: GKYZ-based bands scale with annualized statistical volatility rather than smoothed true range, so they respond differently to isolated gap events.

How traders use it

  • As the default OHLC volatility input for gap-prone instruments: equities and session-based futures where overnight moves carry a large share of total variance.
  • As a width term for volatility bands and adaptive smoothing: the estimate responds to both intrabar turbulence and gap shocks, so envelopes widen after either kind of event.
  • As a gap-share meter against plain Garman-Klass: the spread between the two isolates how much current volatility arrives overnight rather than within sessions.
  • As an envelope width engine: de-annualized GKYZ times a multiplier around a moving average builds gap-aware bands, an alternative construction to Keltner Channels or Bollinger Bands when overnight risk must show up in the width.
  • As compression screening: a volatility percentile rank of the series locates quiet stretches that often precede range expansion, where quiet must include calm overnights, not just small candles.
  • As a sizing input: volatility-targeted position sizes computed from GKYZ shrink exposure when overnight variance picks up, a statistical counterpart to sizing from a smoothed price range such as ATR.

GKYZ vs adjacent volatility tools

ATR: Both are gap-aware, but differently: ATR folds the gap into true range and smooths it in price units, while GKYZ books the squared overnight log return into an annualized variance estimate. ATR suits stops; GKYZ suits statistical comparisons and band math.

Realized Volatility: Close-to-close realized volatility spans the gap implicitly because each return crosses the overnight, but it ignores everything between open and close. GKYZ separates the overnight and intrabar contributions and reaches a stable reading with fewer bars.

TTM Squeeze: TTM Squeeze infers volatility compression from Bollinger Bands sitting inside Keltner Channels, a chart-space heuristic. A GKYZ percentile delivers similar regime information in a single statistical series, including overnight variance the band overlays only see indirectly.

Concept family

Volatility

57 concepts mapped · 57 in the Library

Garman-Klass–Yang-Zhang Hybrid FAQ

Turn Garman-Klass–Yang-Zhang Hybrid into a trading strategy.

Take the implementation from this page into Quant, then build on it, backtest it on real data, and keep refining it in conversation.