100% Free & Open Educationmyfinedu.com is an independent educational portal. We are not SEBI-registered advisers. No paid stock tips or portfolio management.Read Full Disclaimer
Quantitative & StatisticalAdvanced LevelR:R 1:2 to 1:3

Pairs Trading Trading Strategy

A market-neutral statistical arbitrage strategy that trades two historically correlated securities when their price spread temporarily diverges beyond historical standard deviations.

Optimal Timeframe
Daily / 4-Hour
Historical Win Rate
65% - 75%
Target Payoff (R:R)
1:2 to 1:3
Holding Horizon
1 Week to 4 Weeks
Suitable Asset Classes:Equities (Stock Futures / Long-Short Cash)Commodities (Gold/Silver)Index Pairs (NIFTY vs BANKNIFTY)
Visual Technical Chart Setup

Interactive Candlestick Blueprint

TCS.NS (Long) vs INFY.NS (Short)
Daily (1D)
Time: Day 30O: -0.60H: 0.20L: -0.70C: 0.00
Price Spread Ratio (TCS / INFY)Historical Mean Ratio Line (2.50)R:R 1:2.8
-3.52-2.36-1.20-0.041.12Day 1Day 5Day 10Day 15Day 20Day 25Day 30SUPPORT -2.00RESISTANCE 2.00Spread at Normal EquilTCS Underperforms INFYZ-Score Hits -2.35 SigSpread Begins Mean RevTarget Reached (Z-ScorENTRY -2.35SL -3.20T1 0.00T2 0.80Z-Score Oscillator with +2.0 and -2.0 Sigma BandsMean (0.0)-2.0 SD
Technical Chart Setup Mechanics & Trade Invalidation
Market Neutrality: Both stocks are in the Indian IT sector. Sector-wide currency fluctuations or macro IT headwinds affect both stocks equally.
Cointegration Test: Augmented Dickey-Fuller (ADF) test p-value is < 0.01, mathematically proving the long-term stationary relationship.
Equal Beta Sizing: Position sizes are weighted by their historical Beta / Hedge Ratio (e.g. ₹5,00,000 Long TCS vs ₹5,00,000 Short INFY Futures).
Mean Reversion Profit: When Z-score reverts from -2.35 to 0.0, the combined pair yields a 3-5% net profit regardless of broader NIFTY direction.
Strategy Foundation

Philosophy & Institutional Market Mechanics

Pioneered by quantitative hedge funds at Morgan Stanley in the 1980s, Pairs Trading is a market-neutral statistical arbitrage strategy. Rather than betting on whether the market goes up or down, pairs traders identify two highly cointegrated stocks in the same sector (e.g. HDFC Bank vs ICICI Bank, or TCS vs Infosys) that share identical fundamental and macroeconomic drivers. When their price ratio diverges beyond 2 standard deviations (Z-Score > 2.0), the trader simultaneously buys the undervalued stock and shorts the overvalued stock.

The core statistical concept is Cointegration: two time series share a stationary equilibrium relationship over time. When company-specific noise causes the spread between the two stocks to widen unnaturally, statistical forces inevitably pull the spread back to its historical mean. When the spread mean-reverts, both legs of the trade are closed for a combined profit.

The Mathematical Edge

Pure Market Neutrality (Beta = 0): If the entire stock market crashes by -10%, the short leg gains while the long leg drops, leaving the pairs trader protected. Profit is generated purely from the relative spread convergence.

Optimal Market Regime

All market conditions; market-neutral structure generates profits regardless of whether the overall market rises or crashes

Execution Protocol

Step-by-Step Trade Execution Blueprint

Follow this systematic 4-phase checklist from pre-market screening to profit extraction.

Step 1: Quantitative Pair Selection & Cointegration Test1

Statistical Screening

Run statistical tests (Augmented Dickey-Fuller / ADF and Engle-Granger two-step cointegration) on historical daily price series over 2+ years.

Phase Checklist:
Pair correlation > 0.80 and Cointegration p-value < 0.05
Stocks belong to the same sector (e.g. HDFCBANK vs ICICIBANK, TATAMOTORS vs M&M)
High liquidity in both Cash and Futures segments
Step 2: Calculate Z-Score & Hedge Ratio2

Determining Spread Deviation

Calculate the 60-day rolling Z-Score of the price spread: Z = (Current Spread - 60-day Mean Spread) / Standard Deviation.

Phase Checklist:
Wait for Z-Score to exceed +2.0 (Short Stock A / Long Stock B) or drop below -2.0 (Long Stock A / Short Stock B)
Calculate Hedge Ratio (Beta) to determine exact contract/share sizing
Step 3: Simultaneous Execution3

Executing Both Legs at Once

Enter both the Long and Short legs simultaneously using basket orders to avoid leg risk.

Phase Checklist:
Execute both legs within seconds of each other
Set maximum risk stop at Z-Score = ±3.2 (structural cointegration breakdown)
Step 4: Exit at Mean Reversion4

Closing the Arbitrage Basket

When the Z-Score returns to 0.0 (the historical mean), close both legs simultaneously and book the combined profit.

Phase Checklist:
Close both legs when Z-Score crosses 0.0
Do not hold the pair hoping it overshoots into the opposite direction
Capital Preservation Tool

Live Position Sizing & Invalidation Calculator

Never guess order quantities. Input your account capital to compute exact risk allocation.

Interactive Position Sizing & Risk Engine

Live Math

Calculate exact safe quantity & invalidation risk for Pairs Trading

5,00,000
1% (₹5,000)
0.25% (Conservative)1.0% (Standard Institutional Rule)3.0% (Aggressive)
Position Sizing Formula:
Quantity = (Account Capital × Risk%) ÷ (Entry Price - Stop Loss Price)

5,000 max risk ÷ ₹0.85 risk per share = 5882 Shares

Trade Sizing Verdict1 : 2.76 R:R
Safe Order Quantity
5,882Shares / Units
Max Invalidation Loss
-₹5,000
(1% of account)
Potential Target Gain
+₹13,822.7
(+2.8% portfolio)
Trade Capital Required
-13,822.7
(-0.03x of capital)
Risk Per Share
0.85
(-36.2% price drop)
SEBI Risk Rule CheckedFixed Fractional Engine
SEBI-Aligned Risk Management Framework

Non-Negotiable Risk & Stop-Loss Guidelines

Professional traders survive and compound because they protect downside capital with mechanical discipline.

Max Risk Per Trade
1.5% of total portfolio capital

Never allocate more than this percentage of total portfolio equity on any single execution.

Stop-Loss Logic

Stop loss triggered if Z-Score widens past 3.2 Standard Deviations, indicating a structural fundamental break (e.g. corporate governance crisis in one company).

Trailing Stop Rule

Move stop to breakeven once Z-Score recovers to 1.0 sigma.

Daily Circuit Breaker Rule

If a major merger, acquisition, or fraud scandal affects one stock in the pair, exit both legs immediately — cointegration is broken.

Capital Preservation Checklist
  • Never trade pairs across unrelated sectors (e.g. Tata Steel vs Infosys)
  • Always account for Futures rollover and margin maintenance costs
  • Verify dividend ex-dates before entering pairs
Case Walkthrough

Real-World Trade Execution Case Study

Deconstructed timeline, mathematical sizing, and post-trade performance review on Indian markets.

HDFCBANK.NS (Long) vs ICICIBANK.NS (Short)Stock Futures PairFebruary 2024
Outcome: Full Win (+₹17,000 (+4.25% return on margin capital))

Context & Catalyst: Post-merger selloff caused HDFC Bank to underperform ICICI Bank to an extreme Z-Score of -2.6 standard deviations.

Entry Execution
Z-Score at -2.6 (Simultaneous Buy 1 lot HDFCBANK Futures / Sell 1 lot ICICIBANK Futures)
Stop Loss
Z-Score at -3.3 (Max risk ₹6,000)
Exit Target
Z-Score at 0.0 (Full mean reversion in 18 trading days)
Realised R:R
1:2.8
Key Trader Takeaways:
During the 18 days, NIFTY swung wildly by ±800 points, but our pair position was completely immune to market direction.
HDFC Bank bounced +7% while ICICI Bank rose +2%, generating a clean net 5% spread profit.
Risk Hazards

Fatal Mistakes to Avoid

Trading Correlation instead of Cointegration

Why it happens: Correlation measures short-term co-movement, while Cointegration measures long-term stationary mean-reversion. High correlation stocks can drift apart forever.

Rule Fix: Always run statistical ADF cointegration tests, not just simple Pearson correlation.

Failing to execute both legs simultaneously (Leg Risk)

Why it happens: Buying the long leg and waiting 10 minutes to short the second leg, exposing the trade to market directional risk.

Rule Fix: Always use Basket Orders to execute both legs simultaneously.

Institutional Edge

Pro Edge Enhancers

Gold vs Silver Ratio (GSR): One of the oldest pairs trades in commodities. When GSR rises above 85, buying Silver and shorting Gold has generated consistent historical returns.
During severe bear market crashes, pairs trading allows you to remain fully deployed and profitable while retail long-only portfolios lose 30-40%.
Questions & Answers

Frequently Asked Questions

Q1.What is the minimum capital required for Pairs Trading in India?

Because pairs trading in India typically utilizes Stock Futures (which require margin for both the long and short contracts), a minimum capital of ₹5,00,000 to ₹10,000,000 is recommended to maintain safe margin buffers.

Q2.How do I calculate Z-Score for a stock pair?

Z-Score = (Current Spread Ratio - Moving Average of Spread Ratio) / Standard Deviation of Spread Ratio over a 30 to 60-day lookback period.

Cross-Discipline Playbooks

Related Trading Strategies

View All 18 Strategies