Trading Strategies

PairsTrading

Last Updated
Quick Definition

Pairs Trading — Pairs trading is a market-neutral strategy that goes long on one security and short on a correlated security when their price relationship diverges.

Track Pairs Trading with JournalPlus

Pairs trading is a market-neutral trading strategy that simultaneously takes a long position in one security and a short position in a correlated security. When the price relationship between the pair diverges from its historical norm, pairs traders bet on convergence—going long the underperformer and short the outperformer. Profits come from the spread normalizing, regardless of overall market direction.

  • Long one stock, short another correlated stock
  • Profit from relative movement, not market direction
  • Works when correlated stocks temporarily diverge

How Pairs Trading Works

Pairs trading exploits temporary divergences in correlated securities:

Pairs Trading Logic:
1. Identify two highly correlated stocks (e.g., Visa & Mastercard)
2. Calculate their historical price ratio (spread)
3. When spread deviates 2+ standard deviations:
   - Short the outperformer
   - Long the underperformer
4. Exit when spread reverts to mean
5. Profit regardless of market direction

Quick Reference: Pairs Trading Setup

ElementDescriptionTarget
CorrelationHow closely pairs move together> 0.80
CointegrationStatistical relationship over timeMust pass test
Spread entryStandard deviations from mean2+ SDs
Spread exitWhen spread normalizes0-0.5 SDs
Holding periodTime for spread to convergeDays to weeks

Example: HDFC Bank vs. ICICI Bank Trade

Setup: Both banks trade together historically (correlation 0.85)

Observation:

  • HDFC Bank: Up 8% this month
  • ICICI Bank: Up 2% this month
  • Spread: 2.3 standard deviations from mean

Trade:

  • Short ₹5 lakh of HDFC Bank
  • Long ₹5 lakh of ICICI Bank
  • Net market exposure: Zero

Two weeks later:

  • HDFC Bank: Flat (from your short entry)
  • ICICI Bank: Up 4% (from your long entry)
  • Spread has normalized

Result:

  • Short leg: Break-even
  • Long leg: +4% = ₹20,000 profit
  • Total: ₹20,000 on ₹10 lakh deployed

Pairs trading goes long on one stock and short on a correlated stock when their relationship diverges. It’s market-neutral because you profit from the spread converging, not from market direction. Find pairs with high correlation in the same sector.

Finding Tradable Pairs

Criteria for Good Pairs:

  1. Same industry – Affected by similar forces
  2. High correlation – 0.80+ over long periods
  3. Cointegrated – Statistical test for long-term relationship
  4. Sufficient liquidity – Can enter/exit both legs easily
  5. Borrowable – Shares available to short
  • HDFC Bank / ICICI Bank
  • Reliance / ONGC
  • TCS / Infosys
  • Maruti / Tata Motors
  • SBI / Bank of Baroda

The Spread Calculation

Price Ratio Method:

Spread = Price of Stock A / Price of Stock B
Normal Ratio: 1.25 (historical mean)
Current Ratio: 1.40 (Stock A outperforming)
Deviation: 12% from mean (trade signal)

Z-Score Method:

Z-Score = (Current Spread - Mean) / Standard Deviation
Z > 2: Short A, Long B
Z < -2: Long A, Short B
Exit when Z returns to 0

Risk Management in Pairs Trading

1. Position Sizing

Equal dollar amounts on each leg. If one stock is more volatile, adjust for equal beta exposure.

2. Stop Loss

Set max spread deviation. If spread hits 3-4 standard deviations, the relationship may be broken.

3. Time Stop

If spread doesn’t converge within expected period (e.g., 30 days), exit and reassess.

4. Correlation Monitoring

Track correlation in real-time. If it’s breaking down, exit the position.

Why Pairs Trade?

  1. Market-neutral – Don’t need to predict market direction

  2. Reduced volatility – Hedged position has lower variance

  3. Works in any market – Bull, bear, or sideways

  4. Statistical edge – Mean reversion is a documented phenomenon

Common Mistakes

  1. Ignoring cointegration – High correlation isn’t enough. Pairs must be statistically cointegrated to mean-revert.

  2. Unequal position sizes – Both legs must be equal in value (or risk) for proper hedging.

  3. Fighting permanent divergence – Sometimes the relationship breaks. Companies change. Cut losses when the thesis is broken.

  4. Ignoring borrow costs – Short positions have costs. Factor them into profitability.

How JournalPlus Tracks Pairs Trades

JournalPlus tracks both legs of your pairs trades as a combined position, calculating net P&L, spread entry/exit levels, and whether your pairs are converging as expected. You can monitor correlation between your paired positions over time.

Common Questions

What is an example of pairs trading?

Coca-Cola and Pepsi usually move together. If Coca-Cola rises 5% while Pepsi stays flat, a pairs trader shorts Coca-Cola and goes long Pepsi, betting they'll converge. When the spread normalizes, both positions profit.

Why is pairs trading considered market-neutral?

You're long one stock and short another, so overall market direction doesn't affect you. If the market crashes, your long loses but your short gains. You profit from the relationship between the pair, not market direction.

How do you find pairs to trade?

Look for stocks in the same sector with high historical correlation (0.8+). Run statistical tests for cointegration. Common pairs: Coca-Cola/Pepsi, Visa/Mastercard, HDFC Bank/ICICI Bank. The key is they should move together long-term.

What is spread in pairs trading?

The spread is the price difference between the two stocks (often normalized as a ratio). When the spread deviates significantly from its historical average, you trade expecting it to revert to the mean.

What are the risks of pairs trading?

The main risk is permanent divergence—when the historical relationship breaks due to fundamental changes. Other risks include execution difficulties, capital requirements for margin on shorts, and borrow costs for short positions.

Share this article

Track Pairs Trading Automatically

JournalPlus calculates your pairs trading and other key metrics from your trade data. Import trades and get instant insights.

SSL Secure
One-Time Payment
7-Day Money-Back
4.9/5 (1,287 reviews)
Track Pairs Trading automatically 7-Day Money-Back
Buy Now - ₹6,599 for Lifetime Buy Now - $159 for Lifetime