kotak-logo
Algorithmic Trading Logo Light Mode

Kotak

Stockshaala

Module 5
Popular Algo Trading Strategies
Course Index

Chapter 3 | 2 min read

Algo Strategy: Pairs Trading – Neutral & Smart

Imagine this:

Two friends usually walk side by side. One day, one walks faster and moves ahead. You expect the other to catch up soon.

That’s Pairs Trading in a nutshell.

It’s a market-neutral strategy where you trade two related stocks — betting that their price relationship will return to normal.

You buy one stock and short the other.

Let’s say:

  • You pick BANK A and BANK B (both in same sector)
  • Usually, their price ratio is stable
  • Suddenly, BANK A runs ahead but BANK B lags

You go:

  • Short BANK A
  • Long BANK B

When the price relationship returns to normal, you close both positions — and hopefully pocket the profit.

Why It Works

  • Stocks in the same sector often move together
  • Temporary divergences happen due to news, panic, or low liquidity
  • They tend to mean-revert over time

This strategy doesn't depend on overall market direction — so it works in bull, bear, or sideways markets.

  1. Pick Pairs: Use historical data to find stocks that move together — called cointegration.

  2. Track Spread: Calculate the difference or ratio between the two prices.

  3. Set Thresholds:
    a. If spread widens too much → enter trade
    b. If spread comes back to normal → exit trade

  4. Manage Risk:
    a. Set stoploss in case divergence continues
    b. Use equal capital allocation on both sides

Watchouts

  • You need statistical tools to find cointegrated pairs — it’s not just random stock matching
  • Sharp news (like quarterly results) can break the correlation
  • Algo should re-test pairs often — relationships change

Bonus Tip

You can also try:

  • ETF vs Stock pairs (e.g., Bank Nifty ETF vs Axis Bank)
  • Sector Leader vs Laggard plays
  • International ADRs vs Indian stocks (for advanced users)

Pairs trading is like hedged arbitrage — less risky but needs discipline and precision. It’s a favorite of many quant traders.

Next up, let’s learn about a more structured and widely used strategy — VWAP-based trading used by institutions.

Is this chapter helpful?
Previous
Algo Strategy: Mean Reversion – Buy the Dip, Sell the Spike
Next
Algo Strategy: VWAP Strategy – Trade Like Big Players

Disclaimer: This article is for informational purposes only and does not constitute financial advice. It is not produced by the desk of the Kotak Neo Research Team, nor is it a report published by the Kotak Neo Research Team. The information presented is compiled from several secondary sources available on the internet and may change over time. Investors should conduct their own research and consult with financial professionals before making any investment decisions. Read the full disclaimer here.

Investments in securities market are subject to market risks, read all the related documents carefully before investing. Brokerage will not exceed SEBI prescribed limit. The securities are quoted as an example and not as a recommendation. SEBI Registration No-INZ000200137 Member Id NSE-08081; BSE-673; MSE-1024, MCX-56285, NCDEX-1262.

Discover our extensive knowledge center

Explore our comprehensive video library that blends expert market insights with Kotak's innovative financial solutions to support your goals.

PreviousCourse IndexNext