Garman-Klass–Yang-Zhang Hybrid
The Garman-Klass–Yang-Zhang hybrid (GKYZ) is the Garman-Klass estimator patched for overnight gaps. It is a Volatility concept. The Library holds 1 implementation, ready to run on Vela.
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
Want to trade Garman-Klass–Yang-Zhang Hybrid? Put the implementation below on a live chart in Vela, and Quant will help you build a strategy on it and backtest it.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
Garman-Klass–Yang-Zhang Hybrid FAQ
Turn Garman-Klass–Yang-Zhang Hybrid into a trading strategy.
Open the implementation from this page in Vela. Quant, our coding agent, builds the strategy with you and backtests it on real data.
Browse this familyVolatility61 concepts mapped · 61 in the Library
- %B
- Acceleration Bands
- ATR
- ATR Bands
- ATR Expansion/contraction
- ATR-based Stop Distance
- Average Daily Range
- Band Walk
- BandWidth
- Bollinger Band Tag Reversion
- Bollinger Bands
- Bollinger Squeeze
- Chaikin Volatility
- Choppiness Index
- Close-to-close Historical Volatility
- Damiani Volatmeter
- Donchian Channels
- Donchian Width
- Double Bollinger Zones
- Envelope
- Event-driven Volatility
- EWMA Volatility
- Expected Move
- Fibonacci Bollinger Bands
- Gap-volatility Relation
- GARCH-family Clustering
- Garman-Klass Estimator
- Garman-Klass–Yang-Zhang Hybrid
- Jump Detection
- Kase Studies
- Keltner Channels
- Mass Index
- NR4/NR7 Narrow-range Bars
- Parkinson Estimator
- Projection Bands
- Range Expansion/contraction
- Realized Volatility
- Relative Volatility Index
- Rogers-Satchell Estimator
- Squeeze Release Direction
- Standard-deviation Channel Width
- STARC Bands
- SVE Bands
- The Range Indicator
- TTM Squeeze
- Ulcer Index
- Volatility Breakout
- Volatility Cones
- Volatility Contraction Pattern
- Volatility Estimators
- Volatility of Volatility
- Volatility Percentile/rank
- Volatility Ratio
- Volatility Regime Classification
- Volatility Signature Plot
- Volatility Switch
- Volatility Term Structure
- Waddah Attar Explosion
- Weekend/overnight Volatility Profile
- Williams VIX Fix
- Yang-Zhang Estimator
