Stock Pairs Trading

Stocks Advanced United States Cash Equities Equity Options ETFs

Direction Agnostic - Profits from Relative Movement

Learn this and United States-market strategies in depth — one-time purchase, lifetime access.
Unlock full hub →

Quick Reference

Strategy Type Statistical Arbitrage / Market Neutral
Market Outlook Direction Agnostic - Profits from Relative Movement
Risk Level Moderate to High
Time Horizon Intraday to Swing (1-10 days typical)
Best Conditions High correlation pairs with temporary divergence
Avoid When Correlation breakdown, earnings mismatch, sector rotation events

Payoff Profile

Pairs trading profit depends on spread convergence, not absolute direction

United States Market Details

Exchange NYSE/Nasdaq
Trading Hours 9:30 AM - 4:00 PM ET
Margin Benefit Hedged long/short positions may qualify for reduced margin under portfolio margin (vs Regulation T)
Contract Cycle Monthly options expire the third Friday; weekly options also available
Lot Sizes US stocks trade in shares (no lot size); options carry a 100-share multiplier - size legs by matching dollar notional
Corporate Actions Monitor for dividends, splits, and spin-offs affecting the pair ratio
Earnings Seasons Avoid pairs where one stock reports earnings and the other doesn't

Frequently Asked Questions

How much capital do I need to start pairs trading?

Pairs trading requires holding two positions simultaneously, so capital requirements are higher than single-stock trading. To short one leg you need a margin account, and hedged long/short positions are capital-efficient under portfolio margin (roughly 40-50% of combined notional vs the full Reg T requirement). For a basic banking pair like JPM-BAC, you might commit $400,000-500,000 of buying power for a sizable position. Starting capital of $1,000,000-1,500,000 allows proper position sizing and multiple pair opportunities. If you fund both legs fully with cash, requirements are higher. Note: under the Pattern Day Trader rule, active intraday pairs trading requires a $25,000 minimum account balance.

Is pairs trading truly risk-free since it's market-neutral?

No, pairs trading is NOT risk-free. While it's market-neutral (immune to broad market direction), it has specific risks: (1) Spread blowout - the divergence continues instead of reverting, (2) Correlation breakdown - the historical relationship stops working, (3) Company-specific events - earnings or news affecting one stock permanently, (4) Execution risk - slippage when entering/exiting both legs. You can lose 10-20% on a pairs trade if the spread moves against you significantly.

Which US brokers support pairs trading well?

Most major brokers support pairs trading, but look for: (1) Portfolio margin for capital-efficient hedged positions (Interactive Brokers, Schwab/thinkorswim), (2) Ability to place paired/basket or one-cancels-other (OCO) orders for simultaneous execution, (3) Spread charting or pairs analysis tools (some platforms have this built-in), (4) API access if you want to automate (Interactive Brokers API, Alpaca API). AlgoKing integrates with multiple brokers and provides pairs analysis tools for simulation practice.

How long do pairs trades typically last?

In US markets, intraday pairs trades can work for highly liquid banking pairs. Most pairs trades last 2-10 days. Banking pairs typically revert in 3-7 days, technology pairs in 8-15 days. Set maximum holding periods based on the pair's historical half-life. If a trade hasn't begun reverting within 1.5x the expected half-life, exit regardless of P&L - the original thesis may no longer apply. Avoid holding pairs through weekends when unexpected news can occur.

Can I do pairs trading with stocks at very different share prices?

Yes, and you'll need to handle it. The key is matching dollar exposure, not share count. For example, a $500,000 leg in JPM at $290 is about 1,724 shares, while a $500,000 leg in BAC at $48 is about 10,417 shares. Sizing each leg to equal dollar notional (adjusted by the hedge ratio) gives you a market-neutral position. If you use options instead, remember each contract controls 100 shares, so size the number of contracts to match the dollar exposure of each leg.

How do I handle dividend dates when one stock goes ex-dividend?

Dividends create an artificial spread change. When a stock goes ex-dividend, its price drops by the dividend amount, widening or narrowing the spread depending on which leg goes ex-dividend. Two approaches: (1) Avoid pairs with upcoming dividends (check the corporate actions calendar), (2) Adjust your spread calculation for the expected dividend drop. If trading the cash market, dividends affect your spread directly when a stock goes ex-dividend - account for the expected drop. If using options, expected dividends are already embedded in option prices, so they affect the legs' values but not your spread thesis as directly.

What's the difference between distance method and cointegration method for pairs trading?

Distance method simply tracks the normalized price difference (spread) and trades when it exceeds historical thresholds - it's simpler but makes no assumption about mean reversion. Cointegration method uses statistical tests to confirm the spread is actually mean-reverting, providing stronger theoretical foundation. In practice, cointegration method has higher win rate but fewer signals. Distance method generates more trades but with lower conviction. Most professionals use cointegration as primary filter, then distance/Z-score for entry timing.

How should I adjust hedge ratios over time?

Hedge ratios aren't static - recalculate at least weekly. The relationship between stocks changes due to earnings impact, market cap changes, and evolving business fundamentals. Use rolling regression (60 days for active trading) to update hedge ratios. If hedge ratio changes dramatically (>20% shift), the pair may be entering unstable period - consider reducing position or avoiding the pair temporarily. For existing positions, you can adjust by adding/reducing shares in one leg to maintain neutrality, but frequent adjustments increase transaction costs.

Can I use pairs trading with a sector ETF and its individual constituents?

Yes, index vs constituent pairs trading (basis trading) is a valid strategy. Long a financials ETF like XLF, short individual bank stocks (or vice versa) exploits deviations in the ETF vs component relationship. Key considerations: (1) Calculate proper weights - JPM is a top holding of XLF (around 10% weight), so size your JPM short to its weight in the ETF, (2) This is essentially betting on a stock's relative performance vs the sector, (3) For pure bank exposure a bank-specific ETF (like KBE) tracks constituents more directly than the broader XLF. This strategy works well around index rebalancing events when weights change.

What's the optimal number of pairs to trade simultaneously?

For active individual traders, 3-5 pairs is optimal. This provides diversification without overwhelming monitoring capacity. Each pair requires attention - watching both legs, monitoring correlation, tracking spread. More than 5 pairs splits focus too much and increases execution complexity. Capital efficiency also matters: with portfolio-margin benefits, 3-5 pairs typically utilizes 50-70% of available capital. Systematic/algorithmic traders can handle 20-30 pairs with automation, but discretionary traders should stay focused.

How do I implement Kalman filter for dynamic hedge ratio estimation?

Kalman filter provides adaptive hedge ratio that responds to recent price action while smoothing noise. Implementation: (1) State equation: hedge ratio follows random walk plus noise, (2) Observation equation: Stock A return = hedge ratio × Stock B return + noise, (3) Update hedge ratio each period using Kalman gain. Advantage over rolling regression: Kalman adapts faster to regime changes while being more stable than short lookback regression. Python's pykalman or manual implementation works. Key parameter is process variance - higher values make the filter more responsive but noisier.

How should I handle the joint hypothesis problem in pairs backtesting?

Joint hypothesis problem: when backtesting pairs, you're simultaneously testing if (1) your pair selection criteria work, (2) your entry/exit rules work, (3) your position sizing works. If results are bad, you don't know which component failed. Solution: test components separately. First, test if selected pairs actually mean-revert out-of-sample (regardless of trading rules). Then, given mean-reverting pairs, test different entry thresholds. Finally, test sizing rules. Use walk-forward optimization with separate in-sample selection and out-of-sample validation periods to avoid overfitting.

What's the role of PCA (Principal Component Analysis) in statistical arbitrage?

PCA identifies common factors driving returns across stocks. In stat arb, decompose universe returns into principal components (PC1 might be market factor, PC2 sector rotation, etc.). Calculate each stock's loadings on PCs. A stock's residual return (after removing PC influences) represents its idiosyncratic movement. Pairs trade on residual spreads rather than raw price spreads - this isolates true relative value from common factor moves. PCA-based stat arb typically shows lower volatility and more consistent returns because you're trading purer spread after removing market and sector effects.

How do market microstructure effects impact pairs trading execution?

Microstructure matters significantly for pairs profitability. Key effects: (1) Bid-ask spread - you pay spread on both legs, eating into narrow convergence profits. Calculate round-trip cost as % of expected profit. (2) Market impact - larger orders move prices; stagger entry for large positions. (3) Lead-lag effects - one stock may lead another by seconds/minutes; the leader provides signals, trade the lagger. (4) Order book imbalance - check depth on both sides before entering. Solutions: use limit orders, break large trades, avoid illiquid times (open, lunch). Microstructure costs can consume 30-50% of gross profit if not managed.

How do I design a pairs trading strategy that's robust to transaction costs and slippage?

Cost-robust design principles: (1) Widen entry thresholds beyond theoretical optimal - enter at Z-score ±2.5 instead of ±2.0 to ensure move is significant enough to cover costs, (2) Include realistic costs in backtest - commissions are often $0, but model the bid-ask spread (round-trip), borrow cost on the short leg, and market impact; use a higher cost assumption for illiquid stocks, (3) Filter by expected holding period - quick reversion means more turnover and more costs; prefer pairs with moderate half-life (5-10 days), (4) Scale position with spread extremity - larger positions at Z-score ±3.0 where expected return is higher, (5) Partial exits reduce impact cost vs full position close, (6) Avoid pairs with wide bid-ask spreads. Net Sharpe after costs should exceed 1.0 for a viable strategy.

Master United States trading strategies on AlgoKing

Full guided lessons, quizzes, and a complete strategy library for the United States market. One-time purchase. No subscription, ever.

Get United States access →