Pairs Trade Example
As with nearly any investment, taking a pairs trade involves more than just hitting the buy and sell button. Here we examine, in very broad terms, the steps required to enter and exit a pairs trade.
Assemble a list of potentially related pairs
Just as longonly stock traders scan the markets for suitable securities, a pairs trader must start with a list of potentially related pairs. This entails conducting research to find securities that have something in common – whether the relationship is due to sector (such as the auto sector) or to asset (for example, bonds). While any random pair could theoretically be correlated, it is more likely that we will find correlation in securities that have something in common to begin with.
Determining the correlation level
The next step acts as a filter, or a means by which we can reduce the number of potential pairs in our quiver. One way is to use a correlation coefficient to determine how closely two instruments are related. Figure 4 shows a daily chart of the emini S&P 500 contract (in red) and the emini Dow contract (in green). Below the price chart is an indicator that shows the correlation coefficient (in yellow). We can see from the chart that during the time period evaluated, the ES and YM are highly correlated, with values hovering around 0.9. We will keep the ES/YM pair on our list of potential pairs candidates.
Figure 4 The emini S&P 500 contract (in red) and the emini Dow (in green) show potential as a pairs trade. Visual confirmation of price, backed by quantitative results from the correlation coefficient (in yellow), show that the two instruments are highly correlated. Image created with TradeStation.
Another chart, shown in Figure 5, illustrates a pair that is not correlated. In this example, a daily chart of Walmart (in red) and Target (in green) shows little correlation between the two instruments, despite the fact that they “have something in common”. Here, the correlation coefficient (in yellow) demonstrates that the relationship is scattered, ranging from high values of about 0.7 to values below zero, indicating a lack of correlation. In this case, we can remove the WMT/TGT pair from our list of potential pairs candidates.
Figure 5 This daily chart of WMT (in red) and TGT (in green) shows that this is not an ideal pair (at least not during the time period tested). A visual review of prices, confirmed by results from the correlation coefficient (in yellow) indicate a lack of correlation between the two stocks. Image created with TradeStation.
Use modeling to determine specific rules
An ongoing component of the process is to research and test trading ideas and determine absolute methods of evaluating pairs and defining divergence. Traders will have to answer questions like What constitutes “enough” divergence from the trend to initiate a trade? and How will this be evaluated (for example, using data from a price ratio indicator with standard deviation overlays). In general, traders should focus on quantifiable data: i.e., “I will enter a pairs trade when price ratio exceeds two standard deviations.” Figure 6 shows two ETFs – SPY (in red) and DIA (in green) – on a daily chart. Below the price chart is a spread ratio indicator (in blue), with a +/ one and two standard deviation overlay (dotted lines). The mean appears in pink.
Figure 6 A daily chart of the ETFs SPY (in red) and DIA (in green). A spread ratio indicator appears below the price chart, along with a standard deviation overlay. Image created with TradeStation.
Determining position sizing
Many traders use a dollarneutral approach to position sizing when trading pairs. Using this method, the long and short sides of the trade are entered with equal dollar amounts. For example, a trader wants to enter a pairs trade with stock A, trading at $100 per share, and stock B, trading at $50 per share. To achieve a dollarneutral position, the trader will have to purchase two shares of stock B for every one share of stock A. For example:
 Long 100 shares of stock A = $10,000; and
 Short 200 shares of stock B = $10,000.
Buy the underperformer and sell the overperformer
Once the trading rules are met, the trader will buy the underperforming security and simultaneously sell the overperforming security. In Figure 7, the spread ratio has exceeded two standard deviations, and a trading setup has occurred in our ES/YM pair. Here, a long position is entered with two ES contracts, and a simultaneous short position of two contracts is taken in the YM.
Figure 7 A trade is opened in the ES/YM pair. The order entry interface appears on the left side of the screen (one order entry box for the ES; one for the YM). The horizontal red and green lines at the top show the realtime P/L for each position. Image created with TradeStation.
Use sound money management principles to exit the trade
As with most investments, the timing of the exit is critical to the success of the trade. It is important to apply money management principles to pairs trades, including the use of protective stoploss orders and profit targets. Optimal levels are typically determined through extensive historical modeling. Figure 8 shows the ES/YM trade, exited using a conservative net profit level.
Figure 8 The ES/YM trade is exited with a small net profit. Image created with TradeStation.
Despite exhaustive research, modeling and testing, a pairs trading strategy may fail to live up to expectations. Two risks that traders have are model risk and execution risk, introduced in the next section.

Correlation
In the world of finance, a statistical measure of how two securities ... 
Correlation Coefficient
A measure that determines the degree to which two variable's ... 
Inverse Correlation
A contrary relationship between two variables such that they ... 
Benchmark For Correlation Values
A benchmark or point of reference chosen by an investment fund ... 
Negative Correlation
A relationship between two variables in which one variable increases ... 
Positive Correlation
A relationship between two variables in which both variables ...

What is the difference between a copay and a deductible?
Learn how the correlation coefficient may be used to predict the relationship between the returns of two stocks, but also ... Read Answer >> 
How does correlation affect the stock market?
Learn about the role correlation plays in prudent stock market investing, and how the correlation coefficient is used to ... Read Answer >> 
How do I calculate correlation between market indicators and specific stocks?
Discover how to calculate the correlation coefficient between market indicators and stock prices, a critical skill in technical ... Read Answer >> 
What does a negative correlation coefficient mean?
Discover the meaning of a negative correlation coefficient, how this compares to other correlation coefficients and examples ... Read Answer >> 
Can the correlation coefficient be used to measure dependence?
Understand the coefficient of correlation and its use in determining the relationship between two variables through the concepts ... Read Answer >> 
Does a negative correlation between two stocks mean anything?
Learn what the concept of negative correlation means, understand how it is generally calculated and see how it is used in ... Read Answer >>