Main Page > Articles > Pairs Trading > Volatility-Adjusted Pairs Trading: Dynamic Risk Sizing

Volatility-Adjusted Pairs Trading: Dynamic Risk Sizing

From TradingHabits, the trading encyclopedia · 5 min read · March 1, 2026
The Black Book of Day Trading Strategies
Free Book

The Black Book of Day Trading Strategies

1,000 complete strategies · 31 chapters · Full trade plans

Introduction to Volatility-Adjusted Pairs Trading

Volatility-adjusted pairs trading dynamically scales position sizes based on the spread's historical volatility. This method aims to normalize risk across different pairs and market conditions. Higher volatility spreads receive smaller position sizes, while lower volatility spreads receive larger sizes. This ensures a consistent risk exposure per trade. It directly addresses the fluctuating nature of market risk. The strategy still relies on mean reversion, but with an enhanced risk management layer.

Spread Calculation and Volatility Measurement

Select a universe of highly liquid assets. Focus on stocks or ETFs with average daily volume exceeding 1 million shares. Collect 250-500 days of historical daily closing prices.

Calculate the spread for each potential pair. This can be a simple price difference, a ratio, or the residual from an OLS regression. The regression residual method accounts for linear relationships. Regress one asset (Y) on the other (X): Y = alpha + betaX + epsilon. The residual (epsilon) is the spread. Test the stationarity of this spread using an Augmented Dickey-Fuller (ADF) test. A p-value below 0.05 indicates stationarity.

Measure the historical volatility of the spread. Use an Exponentially Weighted Moving Average (EWMA) of the spread's daily returns. A common decay factor (lambda) is 0.94, applied over a 60-day window. This gives more weight to recent volatility. Calculate the Z-score of the spread: Z-score = (Current Spread - Moving Average of Spread) / Standard Deviation of Spread. Use a 60-day moving average and standard deviation for the Z-score calculation.

Dynamic Position Sizing and Entry/Exit Rules

Implement dynamic position sizing based on the inverse of the spread's volatility. Define a target daily volatility for the portfolio, e.g., $1000. Position size (in dollars) = Target Daily Volatility / (Spread Volatility * Square Root of Days in Year). This calculates the dollar amount to invest in the spread. Then, allocate this dollar amount to the individual assets based on their regression beta to maintain dollar neutrality. For example, if the calculated dollar size is $10,000, and stock A has a beta of 1.5 relative to stock B, short $10,000 of stock A and long $15,000 of stock B.*

Entry signals trigger when the Z-score of the spread exceeds ±1.75 standard deviations. This is a slightly tighter threshold than fixed-size strategies.

If Z-score > +1.75: Short the overperforming asset, long the underperforming asset. Size positions dynamically. If Z-score < -1.75: Long the overperforming asset, short the underperforming asset. Size positions dynamically.

Exit signals occur when the Z-score reverts to its mean (zero) or a tighter threshold, e.g., ±0.25.

If Z-score crosses 0 from positive: Close both positions. If Z-score crosses 0 from negative: Close both positions.

Implement a stop-loss at a Z-score of ±2.75. This limits maximum loss per trade. A time-based stop also applies. Close trades after 45 days if no mean reversion occurs. Rebalance positions weekly to maintain dollar neutrality and adjust for changes in spread volatility.

Comprehensive Risk Management

Allocate a maximum of 0.5% of total portfolio capital per trade, ensuring the sum of all trade volatilities does not exceed a predefined portfolio volatility target. Diversify across at least 15-20 independent pairs. This reduces concentration risk.

Continuously monitor the cointegration relationship and spread volatility. Re-run ADF tests monthly. A breakdown in stationarity (p-value > 0.10) requires immediate trade closure and removal of the pair. Update EWMA volatility daily. This ensures position sizes adapt to changing market conditions.

Transaction costs remain a concern. Select highly liquid assets to minimize bid-ask spreads. Factor all commissions into backtesting. Use limit orders for entry and exit where possible.

Market regime shifts significantly impact volatility. During periods of extreme market stress, correlations can increase, and spreads may diverge further. The dynamic sizing mechanism helps. However, consider reducing the overall portfolio volatility target or temporarily halting trading during black swan events.

Thoroughly backtest the strategy across diverse market environments. Optimize Z-score thresholds, EWMA decay factors, and stop-loss levels. Use out-of-sample data for validation. Understand the inherent drawdowns. Maintain a disciplined approach to both execution and risk management. This strategy provides a robust framework for managing risk in pairs trading.