# Questions tagged [pairs-trading]

Pairs trading is a market-neutral trading strategy enabling traders to profit from virtually any market conditions: uptrend, downtrend, or sideways movement. This strategy is categorized as a statistical arbitrage and convergence trading strategy.

122 questions
Filter by
Sorted by
Tagged with
2 votes
1 answer
80 views

### How to correctly explain the current price action in a trading chart with the Hurst Exponent found?

I watched this video tutorial to learn how to estimate the Hurst Exponent using an Excel spreadsheet and a time series sample of 1025 data. I decided to use futures 1H markPriceKlines data from ...
1 vote
1 answer
81 views

### What would be the problem with this pairs trading allocation scheme?

I am new to pairs trading, and I have come up with an idea of how to allocate capital between the long and short leg of a pairs trade. I feel that there is a problem with it, and I want to figure out ...
1 vote
1 answer
64 views

1 vote
0 answers
61 views

### How To Construct A Volatility Spread Position?

Is there a simple way to spread the volatility of one product against another? By simple I mean one trade executed on each leg rather than constant delta hedging. I can see a lot of opportunity for ...
• 11
0 votes
0 answers
45 views

### Pair trading on opposite moving stocks

I am finding materials about pair trading on opposite direction moving stocks, but I don't know the keyword for it and can't find it anywhere. Most search results are pair trading on cointegration ...
0 votes
0 answers
70 views

### Fx futures pairs

I want to setup a pairs trade with the Japanese yen as the quote currency and Mexican peso as the basis currency. (long MXP vs JPY) 2 /M6J contracts, notional is 1,250,000 JPY = 10966.5*2 = 21933 USD ...
2 votes
0 answers
190 views

### Research papers and other resources to learn about useful statistical tools for pairs trading

Brief background: I recently started writing a Python code to find stocks which might be cointegrated. I iterated over a really long list of stocks trying to find a pair which might be cointegrated. ...
2 votes
0 answers
38 views

### Variance of trade length for the OU-process

Based on the article by Bertram (2010), I am trying to calculate the variance of the trade length stated in equation [10] of the paper. However, the weights used has a specification that I cannot ...
• 121
2 votes
0 answers
78 views

### What do I need the Error correction model for in the two step Engle Granger approach (bivariate Cointegration)

could someone kindly explain what I need the ECM for in a bivariate Cointegration test? I am currently trying to reproduce the results of Rad et al. (2015): "The profitability of pairs trading ...
• 23
3 votes
2 answers
885 views

### What is the reason for using log prices in Pairs Trading (Cointegration)?

I was wondering, why some of the research papers on pairs trading (using the cointegration approach) are using log prices to determine the spread of a pair? Why are they not simply using regular ...
0 votes
1 answer
260 views

### Pairs trading/Cointegration confusion

I've been trying to wrap my head around cointegration. Currently I use the log returns of both stocks A and B, calculate the spread given by: $S = log(A) - n*log(B)$ where $n$ is the Hedge Ratio ...
0 votes
0 answers
105 views

### Cointegration and hedge ratio

I've recently been looking into pairs trading through cointegration. So far I've used the log returns of stock A and stock B in a rolling OLS to find the hedge ratio. However, I've noticed that for a ...
1 vote
0 answers
39 views

### Number of observations required for cointegration test

Hopefully a very simple one. I've got two assets daily close prices. How many observations should I use to test for cointegration between these two assets ? Any pointers wuold be great. A
• 11
1 vote
1 answer
236 views

### How to compute returns of a Pairs Trading Strategy with different holding periods?

I am currently working on a project where I am testing a Pairs Trading Strategy based on Cointegration. In this strategy I am considering to trade a couple of hundred stock pairs every day over a time ...
0 votes
0 answers
124 views

### Pairs Trading Strategy Pre-Selection

I am writing paper on the profitability of the pairs trading strategy using US equities. I have done a pre-check to see which business sectors have stocks that are cointegrated. The utilities sector ...
1 vote
0 answers
138 views

### Pairs Trading (Cointegration Approach) - Daily Cointegration Test

I have a question regarding the Pairs Trading strategy based on the Cointegration Approach. Most of the papers/literature I found on Pairs Trading using the Cointegration Approach are usually testing ...
2 votes
1 answer
210 views

### What should the look-back period be when calculating Cointegration?

So I am confused as to what the look-back period should be when calculating Cointegration. By this I mean when running for example a Johansen or ADF test, should my look-back period be 6 months?...
• 133
1 vote
1 answer
99 views

### Should I calculate a spread using stock prices or the ratio?

So I am creating a trading algorithm thats uses cointegration, for a pairs trading strategy. Imagine there is stock A for 100 dollars and stock B for 25 dollars. My questions is when caulcating the ...
• 133
0 votes
0 answers
62 views

### Managing a portfolio of pair trades

When arbitraging ETF holdings against the ETF, how does one manage the portfolio over time? Assume the strategy creates a long signal in pair A (stock X/ ETF) and a short signal in pair B ( stock Y / ...
0 votes
1 answer
244 views

### Pairs Trading: Normalized price series (co-integrated and correlated) always end up diverging

Need some expert advice and suggestions: I am trying out pairs trading or statistical arbitrage (as traders say). But even if two price series are co-integrated (ADF test, Hurst exponent, Ornstein–...
1 vote
1 answer
189 views

### Why is OLS based spread not reflective of actual difference?

I'm trying to define and track the spread between two time series (data available here), for the purpose of learning pair trading basics. When running a cointegration test the two series seem to be ...
• 111
1 vote
0 answers
277 views

### Constructing a Beta Neutral Hedge in a Pairs Strategy

Looking for resources / explanation. Creating a dollar neutral hedge is easy - stockprice-a/stockprice-b How do I create a beta neutral hedge? I find discussions but no explicit derivation ...
0 votes
1 answer
229 views

### Correct calculation of returns from a pairs trade

I am trying to understand how pairs trading works but I am confused about how to go about calculating the return on the pairs trade when I reverse my positions. I have been reading 'Pairs Trading - ...
• 153
1 vote
1 answer
49 views

### What value to put in lm() function when testing for cointegration (R)

I'm a CS student working on a financial computing project + have a question regarding cointegration testing using linear regression with the lm() function. https://www.rdocumentation.org/packages/...
• 11
0 votes
1 answer
237 views

### Generating buy/sell signals in pairs trading

I'm reading a quantitative trading book"Quantitative Trading with R" by Harry Georgakopoulos. In the pairs trading section, there's an example that creates the spread and generate buy/sell ...
• 321
0 votes
1 answer
178 views

### pairs trading algorithm with returns

I'm having a difficulty grasping how to write a pair algorithm using returns instead of prices. With price differences, I have the mean difference over a long time period. When the current price ...
• 101
0 votes
0 answers
70 views

### Pair Trade - Should stock order matter

I am testing a simple pair trading algorithm and I'm having problems if I swap the stocks around. I don't know which stock should be X and which should be Y. When I swap them I get very different ...
• 101
0 votes
0 answers
240 views

### How can I normalize price data for 2 financial instruments from different categories?

Lets say I want to build a divergence / convergence strategy with FOREX currency pair and a correlated commodity. How can I normalize the prices so that I get an accurate idea of the movements of each,...
0 votes
0 answers
1k views

• 319
3 votes
3 answers
860 views

### Calculating Sharpe Ratio with dynamic position sizing

I'm currently backtesting a mean reversion pairs trading strategy. However, instead of simple long or short trading signals, I'm using multiple "levels", where the further away the spread is from the ...
• 131
1 vote
0 answers
341 views

### Pair trading strategies in fixed income

We usually hear about finding cointegrated pairs of stocks in pair trading, but it seems it is not as developed in fixed income despite the fact that the spectrum of securities is large (different ...
• 177
12 votes
2 answers
13k views

• 131
2 votes
3 answers
705 views

### If two price series are cointegrated but not correlated, how do I find the hedge ratio?

Mathematically, what is going on here?
1 vote
2 answers
186 views

### When constructing a cointegrating series, does choosing the linear regression with the lowest ADF test statistic yield the optimal hedging ratio?

Multiple sources say that you should find the optimal hedging ratio between two stocks in a pairs trade by conducting 2 linear regressions (with each stock as the independent variable), and using ...
0 votes
2 answers
1k views

### Standard deviation of a long-short portfolio with net position zero

I've come across the following question and I'm slightly stuck in answering it: Suppose you have a two-stock portfolio that is long one stock of asset A, and short one stock of asset B, with A ...
1 vote
2 answers
1k views

### Cointegration vs combination of returns

Hi Quantitative Finance, I understand that there are a wealth of pairs trading models out there. Recently, it got me thinking as to why we go through the trouble to find cointegrated pairs while we ...
• 111