AI & Quantitative5 min readUpdated Mar 2026

Pairs Trade

A market-neutral strategy that simultaneously buys one stock and shorts a correlated stock, profiting from the convergence of their spread.

See Pairs Trade in real trade signals

Tradewink uses pairs trade as part of its AI signal pipeline. Get signals with full analysis — free to start.

Start Free

Explained Simply

Pairs trading exploits temporary divergences between two historically correlated or cointegrated stocks. When the spread between them widens beyond a statistical threshold (e.g., 2 standard deviations), you buy the underperformer and short the outperformer, betting they'll converge. The beauty is market neutrality — you profit regardless of market direction because your long and short cancel out market risk. Classic pairs: Coca-Cola/Pepsi, Visa/Mastercard, or ETFs tracking similar indices.

How Pairs Trading Works

Pairs trading is a market-neutral strategy that profits from temporary mispricings between two historically correlated securities. The core idea: when two stocks that normally move together diverge, you buy the underperformer and short the outperformer, betting the spread will converge back to its historical mean. The spread is calculated as the price ratio or price difference between the two securities. Entry signals typically trigger when the spread exceeds a threshold of two standard deviations from its rolling mean. This educational content is not financial advice — all trading strategies carry risk.

Finding Cointegrated Pairs

Not all correlated stocks are suitable for pairs trading. Correlation measures short-term co-movement; cointegration measures a long-run equilibrium relationship. The Engle-Granger test checks whether the residual of a regression between two price series is stationary (mean-reverting). If it is, the pair is cointegrated and suitable for pairs trading. Classic cointegrated pairs include stocks in the same industry with similar business models — for example, major US banks, large-cap oil producers, or ETFs tracking the same index with different constructions. Sector ETF pairs such as XLF/KBE (financials) are popular because the mean-reversion relationship tends to be structurally stable.

Entry, Exit, and Stop-Loss Rules

The standard pairs trade entry triggers when the z-score of the spread exceeds +2 or -2 standard deviations. A z-score above +2 means Pair A is expensive relative to Pair B: short Pair A, long Pair B. The position is closed when the z-score reverts to zero (mean reversion complete) or a fixed profit target is hit. Stop-losses are typically placed at a z-score of +/-3 to 3.5, where the spread has diverged far enough to suggest the historical relationship may be breaking down. Pair trades are sized so that the dollar value of the long and short legs are equal, creating a dollar-neutral position that eliminates direct market exposure.

Risks and Limitations

The primary risk in pairs trading is relationship breakdown — when two securities that were cointegrated stop behaving as a pair. This can happen due to mergers, regulatory changes, management shifts, or fundamental business model changes. For example, two airline stocks may diverge permanently if one files for bankruptcy. A z-score that keeps expanding instead of reverting is the warning signal. Pairs traders must monitor cointegration statistics (Augmented Dickey-Fuller test) on a rolling basis and retire pairs that show structural breaks. Liquidity is another concern: shorting the outperformer requires locating borrow, and borrow costs reduce profitability on mean-reversion timeframes.

Pairs Trading vs. Other Market-Neutral Strategies

Pairs trading is the simplest form of statistical arbitrage. More sophisticated variants include multi-factor relative value (comparing hundreds of securities on fundamental and technical factors), basket trading (long/short portfolios of multiple names), and ETF arbitrage (trading the discount or premium between an ETF and its underlying basket). Pure statistical arbitrage at quantitative hedge funds operates at microsecond latency with hundreds of pairs simultaneously. Retail traders and platforms like Tradewink focus on a curated universe of structurally-sound pairs with adequate liquidity, holding positions from hours to days rather than milliseconds.

How to Use Pairs Trade

  1. 1

    Screen for Correlated Pairs

    Look for stock pairs with correlation above 0.80 in the same sector. Start with obvious competitors: Visa/Mastercard, Coke/Pepsi, AMD/NVDA, Home Depot/Lowe's. Use a correlation matrix tool to scan your universe.

  2. 2

    Test for Cointegration

    Correlation isn't enough — you need cointegration (the spread between the pairs is stationary). Run an Engle-Granger cointegration test with at least 2 years of data. Only trade pairs that pass the test with p-value < 0.05.

  3. 3

    Calculate the Spread and Z-Score

    Compute the price ratio (Stock A ÷ Stock B) or the hedged spread. Calculate a rolling Z-score: (Current Spread - Mean Spread) ÷ Standard Deviation. A Z-score of +2 or -2 marks an entry signal.

  4. 4

    Enter the Trade

    When Z-score > +2: short Stock A, long Stock B (the spread is too wide and should converge). When Z-score < -2: long Stock A, short Stock B. Use the hedge ratio from the cointegration test to size each leg correctly.

  5. 5

    Exit at Mean Reversion

    Close both legs when the Z-score returns to 0 (the spread has normalized). Set a stop-loss at Z-score ±3 — if the spread widens to 3 SD, the cointegration may have broken and the trade is invalidated.

Frequently Asked Questions

What is the best way to find pairs trading candidates?

Screen for stocks in the same sector with similar market caps and business models. Run the Engle-Granger cointegration test or Johansen test on daily price data over at least 252 trading days (one year). A p-value below 0.05 on the cointegration test indicates a statistically significant long-run relationship. Filter further for pairs where the half-life of mean reversion (estimated from the Ornstein-Uhlenbeck model) is between 5 and 30 trading days — short enough to trade profitably but long enough that you are not just catching noise.

What is the z-score in pairs trading?

The z-score measures how far the current spread deviates from its historical mean in units of standard deviation. If the spread is normally distributed with mean 0 and standard deviation 1, a z-score of +2 means the spread is 2 standard deviations above normal. Traders enter when the z-score exceeds +/-2 and exit when it returns to zero. The z-score is calculated as: (current spread - rolling mean) / rolling standard deviation. Common lookback windows are 20, 30, or 60 days.

Is pairs trading legal and available to retail traders?

Yes, pairs trading is completely legal for retail investors and institutional traders alike. You need access to short selling (a margin account) to short the overperformer. Platforms with fractional shares make dollar-neutral sizing easier. The main practical constraints for retail traders are: borrow availability for the short leg, the minimum account size required for margin accounts, and the pattern day trader (PDT) rule if trading on intraday timeframes. Many retail traders focus on multi-day or multi-week pairs trades to avoid PDT restrictions.

How does Tradewink implement pairs trading?

Tradewink's PairsTrader module maintains a universe of cointegrated pairs verified using the Engle-Granger method, recalculated weekly to detect relationship breakdowns. When a pair's z-score exceeds +/-2.0, the AI generates a signal with specific entry prices, a target exit at z-score reversion to zero, and a stop-loss at z-score +/-3.0. Position sizing balances the dollar value of each leg for market neutrality. Users receive trade signals through the Discord bot and can configure pairs trading preferences including minimum confidence thresholds and maximum position concentration. This is educational context about the platform's features, not a guarantee of trading results.

How Tradewink Uses Pairs Trade

Tradewink's PairsTrader module maintains a universe of cointegrated pairs, tested using the Engle-Granger method. When a pair's z-score exceeds +/-2.0, the AI generates a pairs trade signal with specific entry, exit (z-score reversion to 0), and stop-loss (z-score exceeding +/-3.0) levels. The module recalculates cointegration weekly to catch relationship breakdowns.

Trading Insights Newsletter

Weekly deep-dives on strategy, signals, and market structure — written for active traders. No spam, unsubscribe anytime.

Related Terms

See Pairs Trade in real trade signals

Tradewink uses pairs trade as part of its AI signal pipeline. Get daily trade ideas with full analysis — free to start.

Enter the email address where you want to receive free AI trading signals.