GARCH(1,1) Volatility Forecasting for NSE Options Position Sizing


A flat lot-size rule ignores the one variable that actually drives options P&L risk: forward volatility. A GARCH(1,1) forecast of next-session variance gives a sizing input that reacts to the market instead of lagging it.

1. Why GARCH Over a Rolling Standard Deviation

A rolling 20-day standard deviation weights every day in the window equally, so a volatility spike takes 20 days to fully decay out of the estimate. GARCH(1,1) instead models variance as:

$$\sigma_t^2 = \omega + \alpha \epsilon_{t-1}^2 + \beta \sigma_{t-1}^2$$

The $\alpha$ term reacts to yesterday’s shock immediately; the $\beta$ term controls how persistent that shock is. For NSE index weeklies, $\alpha + \beta$ typically sits around 0.97-0.99 — volatility is highly persistent, which is exactly why a stale rolling-window estimate under-reacts after a gap event.

2. Fitting the Model

import numpy as np
import pandas as pd
from arch import arch_model

# returns: daily log returns of the underlying (NIFTY spot or futures), in %
returns = np.log(close).diff().dropna() * 100

model = arch_model(returns, vol="GARCH", p=1, q=1, dist="t")
fit = model.fit(disp="off")

# One-step-ahead forecast of next session's variance
forecast = fit.forecast(horizon=1, reindex=False)
sigma_next = np.sqrt(forecast.variance.values[-1, 0]) / 100  # back to decimal returns

Refit the model on a rolling basis (e.g. every session, on the trailing 500-750 daily bars) rather than once — parameters drift as the volatility regime shifts between trending and range-bound months.

3. Converting the Forecast to Lot Sizing

Translate $\sigma_{next}$ into an expected 1-day move in the underlying, then size so that a 1$\sigma$ adverse move consumes a fixed fraction of allocated capital:

def lots_from_garch(sigma_next, spot, lot_size, capital, risk_fraction=0.01, delta=0.5):
    expected_move_points = sigma_next * spot
    premium_at_risk_per_lot = expected_move_points * delta * lot_size
    max_risk_capital = capital * risk_fraction
    lots = max_risk_capital / premium_at_risk_per_lot
    return max(1, int(lots))
  • delta approximates the option’s directional loss as a fraction of the underlying’s move — update it per strike rather than hardcoding 0.5 once you have a strike selected.
  • risk_fraction is the same lever as a fixed-fractional position sizing rule; GARCH only changes what “1 unit of risk” corresponds to in lots.

4. Coupling to the Entry Framework

This sizing layer is strategy-agnostic — it sits downstream of whatever generates the entry signal, whether that’s the DMI/ADX/HMA/EMA cross-over framework or a delta-neutral gamma scalp. The practical effect: lot counts shrink automatically into an event (RBI policy day, expiry-week gamma pinning) and expand during low-IV grind, without a discretionary override.

5. Backtest Caveats

  • Regime breaks: GARCH(1,1) assumes a stationary long-run variance $\omega / (1-\alpha-\beta)$; a structural regime change (circuit-filter days, exchange-halt sessions) breaks this assumption until the model re-estimates on fresh data.
  • Realized vs. implied gap: the forecast is built on realized returns, not the option chain’s implied volatility — compare the two before sizing, since a wide IV-RV gap usually means the market is pricing a scheduled event GARCH cannot see.
  • Transaction costs: NSE weekly options carry wide bid-ask spreads intraday; a sizing model that trades every session to “optimally” track $\sigma_t$ will bleed more to slippage than it saves in risk precision. Re-size on a fixed cadence (e.g. once per session) rather than continuously.
SEBI MANDATORY REGULATORY DISCLAIMER

Important Notice & Educational Purpose: XAlgoPro (xalgopro.com) and its authors/contributors are NOT SEBI registered Research Analysts (RA) or Investment Advisers (IA) under the SEBI (Research Analysts) Regulations, 2014, or SEBI (Investment Advisers) Regulations, 2013.

All content, algorithmic logic, indicators, Pine Script codes, Python scripts, statistical models, mathematical formulas, and backtest results presented on this platform are published strictly for educational, academic, and technological research purposes only. Nothing on this website constitutes investment advice, financial guidance, an offer, recommendation, or solicitation to buy or sell any security, derivative, contract, or financial instrument on the National Stock Exchange (NSE), Bombay Stock Exchange (BSE), or any other global exchange.

SEBI Statutory Risk Disclosure on Derivatives (F&O):As per SEBI study on Intraday & Derivatives trading, 9 out of 10 individual traders in the Equity Futures and Options (F&O) segment incurred net losses, with an average loss of over ₹50,000 per trader. Over and above net trading losses, loss-makers expended an additional 15% to 50% in transaction fees, brokerage, and statutory taxes (STT, GST, Stamp Duty). Trading options and futures involves substantial financial risk, leverage, and potential loss of entire invested capital.

Past algorithmic backtest performance or hypothetical simulations do not guarantee or represent future live trading results. Readers and users must perform their own independent due diligence, test thoroughly in simulated/paper trading environments, and consult an authorized SEBI Registered Financial Advisor before risking actual capital in Indian equity or derivatives markets. You are solely responsible for all trading decisions, capital allocations, and monetary risks undertaken.