Pairs Trading with Cointegration: Formula, Strategy, Examples & Risk Rules
Pairs Trading with Cointegration explained for Indian share market traders and investors: exact formula (Engle-Granger / Johansen test for stationary spread between Stock A & B), parameters (ADF p-value < 0.05), NSE/BSE examples, and common mistakes.
- •Formula / Rule: Engle-Granger / Johansen test for stationary spread between Stock A & B
- •Standard Parameters: ADF p-value < 0.05
- •Actionable Signal: More rigorous than simple correlation; ensures spread mathematically reverts.
- •Risk Watchout: M&A or regulatory shocks can permanently break cointegration.
1. What is Pairs Trading with Cointegration?
Pairs Trading with Cointegration (Stat Arb) is a core concept in Algo Trading used across Indian equity, F&O, and quantitative markets (NSE/BSE). More rigorous than simple correlation; ensures spread mathematically reverts.
2. Exact Formula & Core Parameters
Standard Settings / Benchmarks: ADF p-value < 0.05. Traders and analysts should treat these defaults as a starting baseline and validate them against the specific instrument's volatility and timeframe.
3. Practical Indian Market Example (NSE/BSE)
HDFC Bank vs ICICI Bank or TCS vs Infosys spread trading.
When applying Pairs Trading with Cointegration on Nifty 50, Bank Nifty, or liquid NSE 500 stocks, always combine it with price-structure context (support/resistance, volume, or fundamental cash flows) rather than relying on a single isolated number.
4. Common Pitfalls & Risk Management
Key Risk to Avoid: M&A or regulatory shocks can permanently break cointegration.
- Always verify data quality (split/bonus adjustments for historical charts, diluted EPS for fundamentals).
- Account for Indian statutory costs (STT, brokerage, stamp duty, GST) and realistic bid-ask slippage.
- Define your invalidation level (stop-loss or thesis break) before entering any capital commitment.
❓ Frequently Asked Questions
What is the formula or core rule for Pairs Trading with Cointegration?
Pairs Trading with Cointegration is defined as: Engle-Granger / Johansen test for stationary spread between Stock A & B. Standard settings or benchmarks are: ADF p-value < 0.05.
How is Pairs Trading with Cointegration used in Indian stock market (NSE/BSE) trading?
More rigorous than simple correlation; ensures spread mathematically reverts. For example: HDFC Bank vs ICICI Bank or TCS vs Infosys spread trading.
What is the biggest mistake traders make with Pairs Trading with Cointegration?
M&A or regulatory shocks can permanently break cointegration.
Aarav Mehta
Senior Equity & IPO Research AnalystAarav Mehta has spent over 11 years analyzing Indian capital markets, primary market IPO issuances, and SEBI regulatory frameworks. Previously an equity research associate at Dalal Street research firms, he tracks Nifty valuations, macroeconomic indicators, and IPO grey market premiums.
More in Algo Trading
View All Guides →Explore More Practical Tools & Editorial Reviews
Apni Charcha provides free financial calculators and platform comparisons for Indian investors and students.