Skip to content
Technical Analysis

Pairs trading and relative value

Betting that two related stocks converge rather than that either one rises — the logic, the maths and the way it fails.

Technical AnalysisAdvanced11 min read
Browse Technical Analysis(172)

Every strategy so far has required a view on direction. Pairs trading does not: you buy one stock and short a related one, betting only that the gap between them narrows. Whether the market rises or falls is largely irrelevant.

The idea

Think of it like this
Two shops on the same street

Two similar kirana shops on the same street have earned roughly the same for years. One month, one of them is suddenly doing far better — same street, same customers, same prices. You would reasonably expect that gap to close, unless something specific changed about one shop.

In the market

That is a pairs trade. If two companies in the same sector, facing the same inputs and the same customers, diverge sharply without a company-specific reason, the spread has historically tended to close. You buy the laggard, short the leader, and profit from convergence.

Loading interactive demo…

What makes a valid pair

  1. A genuine economic link. Same sector, same inputs, same customer base, same regulatory regime. Two banks; two cement producers in the same region; an index and its own future.
  2. A stable historical relationship. The spread should have a history of oscillating around a mean rather than trending. Statisticians call this cointegration; practically, plot the ratio over three years and see whether it wanders or oscillates.
  3. Both legs liquid enough to trade. You need to enter and exit two positions, one of them short — which in India means the stock must be in the F&O segment or borrowable.
  4. A reason for the current divergence that you can name. If you cannot explain why the gap opened, you cannot judge whether it should close.

How it fails

This is why pairs trading has a high win rate and occasional very large losses — the same asymmetric profile as mean reversion generally, which you met earlier. Most trades converge as expected; the ones that do not can erase many winners.

Practical construction

  1. 1
    Size the legs by value, not by share count

    Equal rupee exposure on each side, adjusted for how much each stock moves relative to the other. Otherwise you are not market-neutral — you have taken a directional bet by accident.

  2. 2
    Enter on a statistically unusual spread

    Two standard deviations from the mean ratio is a common threshold. Entering on a small divergence means paying costs on both legs for a move that may be noise.

  3. 3
    Set a stop on the spread, not on either leg

    The position is the spread. A stop on one leg alone converts a market-neutral trade into a naked directional one at the worst moment.

  4. 4
    Set a time stop as well

    If the spread has not converged within your expected window, the relationship may have changed. Exit and reassess rather than waiting indefinitely.

◆ Checkpoint

Relative value

2 questions. Answers are revealed once you submit all of them.

1.Two cement companies have tracked each other for four years. One suddenly outperforms by 22% over two months after announcing a large capacity expansion in a new region. Is this a pairs trade?

2.Why must the stop be placed on the spread rather than on one leg?

0 of 2 answered
Simple bhasha mein
Do bhai, ek jaisa dhandha

Do bhai ki same market mein dukaan hai. Aam taur pe dono ki bikri saath chalti hai. Kabhi ek 20% aage nikal jaaye bina koi wajah ke — toh andaza lagta hai ki dono phir paas aayenge. Pairs trading yahi hai: kaun sahi hai yeh nahi, dono ka faasla dekh rahe ho.

What to remember
  • A pairs trade bets on convergence, not on direction.
  • A valid pair needs a real economic link and a historically mean-reverting spread.
  • The killer failure is the relationship breaking permanently — you then lose on both legs.
  • Size by value, stop on the spread, and use a time stop as well.
  • In India the short leg usually requires futures, which is why it stays largely institutional.
You reached the endMark it done and keep your streak going.
Up nextGann, honestly: angles, squares, and what survives scrutinyPrevious: The open and the close
Finished this lesson?

Mark it done to track your progress through the curriculum.

Common questions

Short, direct answers to what people ask about this topic.

pairs trading meaning
Pairs trading means buying one stock and shorting a closely related one, betting only that the gap between the two narrows rather than that either goes up. Because both legs move with the market, the direction of the index is largely irrelevant to the outcome, which is why the position is described as market-neutral. The profit comes from the spread converging back towards its historical range.
what is cointegration in pairs trading
Cointegration is the statistical property that makes a pair tradable: the spread between two stocks oscillates around a stable mean rather than drifting away permanently, even though each stock on its own wanders. The practical version of the test is cruder — plot the ratio of the two prices over about three years and see whether it keeps returning to a central band or simply trends away.
can retail investors do pairs trading in india
It is difficult, because the short leg is the constraint. A cash-market short has to be squared off within the same session, so carrying the short side overnight means either stock futures or borrowing the shares through Securities Lending and Borrowing — the first restricts you to the F&O universe and brings margin, rollover cost and expiry management, and the second depends on the stock actually being available to borrow at a workable fee. That barrier is much of why pairs trading remains largely an institutional strategy here.
in a pairs trade the stop loss should be placed on the
The spread, not on either individual leg. The position is the relationship between the two stocks, so stopping out one side leaves you holding a naked directional bet, usually at the exact moment the trade is going against you. A time stop belongs alongside it: if the spread has not converged within your expected window, the relationship itself may have changed.
how far should the spread move before entering a pairs trade
Two standard deviations from the mean ratio is the common threshold, because entering on a small divergence means paying costs on two legs for a move that may be noise. The statistical trigger is only half the work — you also need to be able to say why the gap opened, since a spread widens either because the market is temporarily wrong or because one of the businesses genuinely changed, and only the first case reverts.