Language:  ▾
Follow us:

Strategy Basics

While it is commonly agreed that individual stock prices are difficult to forecast, there is evidence suggesting that it is possible to forecast the price ratio of the stock pair. A common way to attempt this is by constructing the portfolio such that the spread series is a stationary process. If we find a stock pair with long-term stable price ration, we can speculate with the high success rate on short-term ratio fluctuation will return to the mean value and we collect a profit. To achieve spread stationarity in the context of pairs trading, one can attempt to find a cointegration between the two stock price series. The stationary process can be than successfully modeled, and subsequently forecasted, using techniques of time series analysis.

Overall statistics

The following graphs summarizes an extensive study of the profitability of stock pairs. 324,125 stock pairs of 132 sectors of the US economy was tested using Stock Pair Builder . Pairs were tested on the model Ratio with default settings (15 to 15 - 2.0 to 0.0) for a period of 1, 2, 3 and 4 years.

The trading strategy is based on the fact that the ratio is stable and oscillates around the average value. If (for whatever reason) ratio comes outside the normal area, you can speculate with high success rate that ratio will return to the mean value. This short-time divergence between pairs may be caused by temporary supply / demand changes when single large investor changes position in a single security, fundamental news, dividend payment etc. Deflection of the market is defined as the difference between current and long-term ratio of stock prices in the pair. If the difference exceeds a predefined threshold (usually the second standard deviation), strategy generate signal to enter the position. The output signal is defined as the ratio of prices return to long-term average or by achieving a time stop-loss.

Chart of stock pair trading price ratio
Fig. 1: Chart of stock pair price ratio with entry levels and trades
Legend: Price ratio, price ratio moving average
Entry levels = 2.standard deviation, / trades


Selection of suitable pairs is based on mutual correlation (dependency) of shares in the pair. The greater the correlation of stock prices,the more stable is the ratio of prices. Perfectly correlated stocks can usually be found within one sector (or subsector) economy (eg. mining and processing of gold, Life Insurance, Telecommunications, etc.). Selection of stocks in one sector also eliminates the risks associated with different economic development of various sectors.

Correlation of the shares in a pair is examined at different periods, most commonly 30 to 400. Correlation of prices fluctuate over time (the more, the shorter the period of calculation of correlation). Therefore average correlation is used for quantification. Stable stock pairs perform an average correlation of 70% to 80%.

Market Neutrality

The pairs trade helps to hedge sector- and market-risk. For example, if the whole market crashes, and the two stocks plummet along with it, the trade should result in a gain on the short position and a negating loss on the long position, leaving the profit close to zero in spite of the large move.

Drift and Risk Management

Trading pairs is not a risk-free strategy. The difficulty comes when prices of the two securities begin to drift apart, i.e. the spread begins to trend instead of reverting to the original mean. Dealing with such adverse situations requires strict risk management rules, which have the trader exit an unprofitable trade as soon as possible. One of the simplest and most effective way to achieve this is time stop-loss, which terminates the trade at the end of predefined period (typically 15 days).
Important part of risk management is also money management, ie. capital allocation to individual positions. Trading many (tens or hundreds) stock pairs helps to eliminate the risk since the funds allocated to a single (pair) position are only a small part of the trading account.

Chart of stock pair trading price ratio
Fig. 2: Equity of stock pairs during last decade
Note, in particular the stability of all pairs during crisis 2007-2010.

Software Solution

Pair trading is robust, proven strategy. Trading is extremly simple – the inputs and outputs are fully mechanical. All the orders are executed once a day, just 5minutes before market close. Extremely difficult is building trading portfolio. There are tens of millions of potential stock pairs, each with several years of history. It is impossible to backtest and select optimal stock pairs without fast and sophisticated software. Similar story is about executing trading signals. You need reliable software monitoring each pair and generating orders for you.

Stock Pair Trading is complete solution for screening, backtesting and trading stock pairs. It is used hundreds of clients all over the world.

Our biggest client is investment fund QuantOn Solutions.

 Download 30-day trial and try!

© StockPairTrading 2007–2020.
All rights reserved.
Note: The performance charts and metrics shown here were generated by StockPairBuilder or based on StockPairBuilder data. These are the results of an ideal stock pair backtest based on freely available End-Of-Day prices. Broker fees, execution price slippage, slippage of real price against EOD price, execution of false signals caused by price movement before EOD and others are NOT included in the results. Most of these influences that occur in real stock pair trading negatively affect the final performance of individual pairs and the strategy as a whole!
Always make sure you fully understand the issue of stock trading and especially the issue of stock pair trading before starting a real stock pair trading. StockPairBuilder and StockPairTrader are only tools for backtesting and trading stock pairs. The user is always responsible for the execution of any business order.