🥂

PairAlpha

What is Pairs Trading?

Pairs trading is a market-neutral trading strategy that matches a long position in one stock with a short position in another related stock. The strategy is based on the concept that the two stocks have a historical price relationship that maintains a statistical equilibrium (cointegration) which can be expected to revert to the mean over time when temporary deviations occur.

Advantages of Pairs Trading

Compared to other strategies, pairs trading offers several benefits:

  • Market-neutral approach reduces exposure to overall market risk
  • Works in various market conditions, including sideways markets
  • Can be less volatile than directional strategies
  • Provides natural hedging through the paired positions
Important Considerations

Ticker Order Matters: The order of tickers (Stock 1 vs Stock 2) affects analysis results, including Z-scores and trading signals. This happens because the regression equation is asymmetric:

  • Stock1 = Alpha + Beta × Stock2

For optimal results, follow these guidelines:

  • For market pairs: Place individual stocks as Stock 1, and ETFs/indices as Stock 2
  • For similar stocks (e.g., Pepsi/Coke): Place the more volatile stock as Stock 1
  • Stock 1 is modeled as being influenced by Stock 2's movements
How to Use This Tool

Enter any two stock tickers to analyze their historical relationship. Cointegration testing checks if the pair maintains statistical equilibrium, essential for pairs trading. Charts display performance, price ratio, and spread over time.

All analyses are currently based solely on daily close data. If you're trading on shorter timeframes (e.g., intra-day or swing trading), consider supplementing this daily close analysis with real-time or intraday data to refine entry and exit points. For most position or medium-term strategies, however, daily close data often provides a sufficient view of broader market trends.

Selecting the Right Timeframe

The timeframe you select affects all analysis results:

  • Shorter (6-12 months): Responds more quickly to recent market changes but can miss longer-term trends
  • Medium (12-24 months): Provides a balanced view, capturing both short-term dynamics and seasonal patterns
  • Longer (24-36 months): Ideal for identifying stable, long-term relationships, though it may include outdated market conditions
Tips for Better Results
  • Look for stocks in related sectors or with similar business models
  • Focus on pairs with strong cointegration (p-value < 0.05)
  • Prefer pairs with shorter half-life values (faster mean reversion)
  • Compare results across multiple timeframes to confirm stability
  • For Z-scores below -2, Stock 1 is undervalued (buy), and above +2, it's overvalued (sell), relative to Stock 2
  • Consider market cap, liquidity, and options availability for practical trading
Legal Disclaimer

The information provided by this tool is for educational and informational purposes only and should not be considered financial advice. Users must conduct their own due diligence and consult with a qualified financial advisor before making any investment decisions. The creators of this tool are not responsible for any financial losses incurred by using the information or strategies presented here. Trading involves significant risk, including the potential loss of principal.

Select Stock Pair
12 months
Loading...

Fetching historical data and calculating statistical metrics...

Pair Overview
Symbol Name Price Mkt Cap Has Options
Loading stock data...

Trade Suggestions

Explore opportunities and evaluate risks

Trade Action
Pair Insights
Analyzing trading conditions...
Performance Snapshot

Compare returns starting from a baseline of 100

Cointegration Check

Engle-Granger test for stable pair equilibrium

Loading...

Analyzing cointegration relationship...

Test Statistics
Regression Analysis
Current Spread Analysis
AI Insights

Copy and paste into any AI assistant

Price Ratio Trend

Track shifts in the pair's price balance

Z-Score Movement

Monitor the pair's price spread over time

Statistical Indicators

Metrics for trade quality and timing

Correlation Analysis

Loading correlation data...

Mean Reversion Metrics

Loading mean reversion data...

Z-Score Analysis

Loading Z-score data...

Volatility & Risk Metrics

Loading volatility data...

Position Size Calculator

Calculate trade sizes for balanced hedging

Trading Parameters
%
%
Current Pair Status