HAR-RV Volatility Targeting in Production: An Implementation Guide

2026-03-09 · finance

HAR-RV Volatility Targeting in Production: An Implementation Guide

Date: 2026-03-09
Category: research (risk control / volatility forecasting)

Why this is worth adding to the stack

Volatility targeting is simple on paper but messy in live trading. The high-level idea is clear:

In practice, most failure comes from two places:

  1. Bad volatility input (microstructure noise, stale data, regime shifts)
  2. Bad control logic (over-reactive leverage changes, no turnover/risk constraints)

This note combines a practical HAR-RV forecast layer with a risk-constrained sizing layer.


Core architecture

Use a 3-layer pipeline:

  1. Measurement layer

    • estimate daily realized variance (RV) robustly
    • handle microstructure contamination explicitly
  2. Forecast layer (HAR-RV)

    • forecast next-day variance using daily/weekly/monthly components
  3. Control layer (vol targeting)

    • map forecast volatility to target leverage with caps, smoothing, and turnover budget

1) Measurement layer: realized variance that survives market noise

Baseline

For day (t), with intraday log returns (r_{t,i}):

[ RV_t = \sum_i r_{t,i}^2 ]

Why naive high-frequency RV breaks

At ultra-high frequency, bid-ask bounce and other microstructure effects can bias volatility estimates. Sampling “too fast” often inflates RV in noisy markets.

Practical choices

A robust workflow is to compute:

[ RV_t^{blend} = w_t,RV_t^{robust} + (1-w_t),RV_t^{sparse} ]

where (w_t) increases when liquidity is high and quote/trade quality checks pass.


2) Forecast layer: HAR-RV as a default workhorse

Model

Classical HAR-RV (Corsi):

[ \widehat{RV}_{t+1}=\beta_0 + \beta_d RV_t + \beta_w \overline{RV}^{(5)}_t + \beta_m \overline{RV}^{(22)}_t ]

with:

[ \overline{RV}^{(5)}t = \frac{1}{5}\sum{j=0}^{4}RV_{t-j}, \quad \overline{RV}^{(22)}t = \frac{1}{22}\sum{j=0}^{21}RV_{t-j} ]

Convert to volatility forecast:

[ \hat{\sigma}{t+1}=\sqrt{\max(\widehat{RV}{t+1},\epsilon)} ]

Production tweaks that usually help


3) Control layer: mapping forecast risk to exposure

Let annualized target vol be (\sigma^*), and forecast be (\hat{\sigma}_{t+1}):

[ L^_{t+1}=\frac{\sigma^}{\hat{\sigma}_{t+1}} ]

Then enforce real constraints:

[ L_{t+1}=\text{clip}\big((1-\rho)L_t+\rho L^*_{t+1},\ L_{min},\ L_{max}\big) ]

plus turnover cap:

[ |L_{t+1}-L_t| \leq \Delta L_{max} ]

This prevents “forecast twitch” from turning into excessive trading and slippage.


Suggested default parameters (starting point)

Tune by net-of-cost utility, not just forecast RMSE.


Backtest protocol (minimum credible)

  1. No look-ahead

    • use only data available at rebalance timestamp
  2. Execution realism

    • include spread + impact + fee + financing costs
  3. Stress windows

    • include crisis and policy-shock periods
  4. Constraint realism

    • leverage limits, borrow/financing assumptions, order size caps
  5. Model stability check

    • performance by subperiod, not only full-sample average

Monitoring in live trading

Track these daily:

  1. Target tracking error: (|\sigma_{realized} - \sigma^*|)
  2. Leverage stability: distribution of (\Delta L)
  3. Turnover vs budget
  4. Forecast drift: rolling bias of (\hat{\sigma}) vs realized
  5. Tail events: exceedance count when realized vol >> forecast

Alert if two conditions hit together:

That combination is where drawdown accelerates.


Common failure modes

  1. Using noisy RV at too-high frequency

    • creates phantom volatility and unstable sizing
  2. Overfitting enriched HAR variants

    • tiny in-sample gains, worse live robustness
  3. Ignoring financing and turnover costs

    • gross Sharpe looks good, net Sharpe collapses
  4. Hard switching with no smoothing

    • procyclical de-risk/re-risk whipsaw
  5. No circuit breaker for data quality

    • bad tick day can trigger extreme leverage changes

Implementation checklist


References (selected)


Bottom line

A useful production setup is not “just HAR-RV” and not “just target vol.”

It is HAR-RV + microstructure-aware RV measurement + constrained exposure control.
That combination typically gives better risk stability and fewer leverage whipsaws than naive volatility scaling.