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.

Filter by
Sorted by
Tagged with
25
votes
1answer
2k views

How do different methods and techniques used in pairs trading compare?

I was going through the paper of Avellaneda (2008) on stat arb and I found it interesting that he uses asset returns vs. their respective ETFs to compute the s-score. I am wondering if anyone has ...
17
votes
4answers
11k views

Is statistical arbitrage on FX possible?

Do you know of any papers which consider pairs trading (or statistical arbitrage) on foreign exchange? I couldn't find any. I asked this question on several forums and got no reply. Thus I guess this ...
14
votes
2answers
6k views

How to build a mean reverting basket?

I have been playing with mean reverting pairs, but seems that most of the low hanging fruit (ie pairs) have been squeezed already. I would like to start with mean reverting baskets (>2 securities) in ...
13
votes
4answers
4k views

How does pair trading work?

Explain pair trading to a layman. What is it, why would you want to do it, and what are the risks? Provide a real life example.
9
votes
1answer
2k views

How to calculate Sharpe Ratio from $ returns?

I have a pairs strategy that I am trying to calculate the sharpe ratio for. Currently I am using python for my analysis and calculation. I have a dataframe that contains the cumulative returns in $'s ...
9
votes
2answers
2k views

What does the cointegration coefficient represent in pairs trading when cointegrating log stock prices?

In Pairs Trading by Vidyamurthy, on page 83 (and throughout the book), the author describes an elementary example of trading with log prices. The long run equilibrium of the basic portfolio is given ...
8
votes
1answer
677 views

Should cointegration be tested using close or adjusted close prices?

When doing cointegration tests should I use the adjusted close price or just close price for the time series? The dividend of each stock is on different dates and can cause jumps in the data.
8
votes
1answer
2k views

What different methods of pairs selection exists? (For Pairs trading)

(I'm quite new to quant finance so I'm not sure if this is an eligible question.) I've decided I want to backtest pairs trading on the Nordic stockmarket. So I would guess there exists different ...
8
votes
1answer
3k views

How does Kalman filtering of beta in pairs trading model work in R?

Could anyone show how this could be done in R? The dlm package seems to be a good start, but I can't really find any good examples to learn from. Currently I have ...
7
votes
2answers
2k views

How should I compute the Sharpe Ratio for mid-frequency pair trading strategy?

I have a pair trading strategy with positions that last 3-5 days and trades 2-3 times a month. By design, all the trades are profitable until the cointegration is broken. Should I calculate the ...
7
votes
3answers
612 views

Why isn't it appropriate to use correlation between prices in a pairs trade strategy?

I've already seen this question and read through all the answers, but I'm still confused about why you shouldn't use price correlation in a pairs trade strategy. For example, if I'm looking at the ...
6
votes
1answer
703 views

Mean reversion time estimation

I am new to mean reversion trading, and I would like to get some good references about how to estimate the time it takes to a mean reverting process to cross its long term mean.
6
votes
2answers
1k views

Pair Trading Index Options

Suppose the trade is between Index Options of two Indices X and Y which are quite similar (but not exactly). So for the equivalent strikes, one can quote option on Index X and cover in Index Y. But ...
6
votes
1answer
1k views

Ornstein versus AR(1) for modeling stationary data

I've come across several posts regarding parameter estimation for O-U models given some stationary data (say, some sort of mean reverting spread), but I can't seem to find an answer as to why modeling ...
5
votes
3answers
1k views

Searching for pairs-trading in sub O(n^2 t) time

Let there be $n$ stock symbols. Let each stock symbol have exactly $t$ ticks (with all ticks miraculously aligned.) We are now searching for potential pairs for pair trading. A brute-force solution ...
5
votes
3answers
1k views

Calculating the right portfolio(position size for each leg) in a Long/Short Strategy

For a Long/Short Strategy, I have two stocks with different volatilities. How can I calculate the right position size for each leg? *The pair trading is not coming from co-integration but more as a ...
5
votes
3answers
1k views

Pairs trading: Question on non-negative profits, size of the positions and trading signals

I'm trying to backtest Pairs Trading but have become a bit confused on the different methods of selecting pairs, how to look for trading signals and what size of the positions to take in the assets. ...
4
votes
2answers
6k views

How can I estimate the Ornstein-Uhlenbeck paramters of some mean reverting data that I have on R?

I have mean reverting data (Difference of 2 stock prices, that I want to do pairs trading on). I want to simulate my own mean reverting data as similar as possible to the real data that I have. The ...
4
votes
3answers
4k views

Calculate spread for pairs trading

What is the best way to begin calculations for pairs trading? I have seen two ways: 1) Start from the price ratio StockAPrice/StockBPrice and calculate mean, ...
4
votes
1answer
4k views

What is the proper way to calculate returns for Pair Trading?

Edit I am assuming that I don't need to use margin account to short here: What is a standard way to calculate return for pairs trading strategy? For example, I bought 100 dollars worth of a loser (L)...
4
votes
2answers
892 views

Statistical significance of a pair trading strategy

How can I test the significance of a pair trading strategy, i.e. that the H0 is "The strategy has no predicting power". I was considering to use the technique in Evidence Based Technical Analysis ...
4
votes
1answer
1k views

Pairs trade CDS contracts using cointegration

Recently I have looked at some sovereign CDS spreads (of the Nordic countries to be precise) and have tested for cointegration in the levels (i.e. untransformed) and logs of the spreads. Tests ...
4
votes
2answers
1k views

How to select optimal look back period for statistical arbitrage?

Is it possible to estimate the optimal look back period for OLS from which we test if residuals are stationary? Almost all papers that I read use random look back periods of 100 days, 252 days, 500 ...
4
votes
3answers
575 views

References on Statistical Arbitrages

Is there any basic materials (books, papers) to read on Statistical Arbitrage? I certainly understand much of the useful information is in the industry. I just want to get some understanding on the ...
4
votes
2answers
1k views

Cointegration trading: Ignoring pairs that aren't economically related

Cointegration trading question What's the state of the art when it comes to choosing proper subsets of stocks/assets where cointegrating relationships aren't ignored as (likely to be) spurious? For ...
4
votes
0answers
1k views

How to trade the Ornstein-Uhlenbeck process?

My question comes from this paper, which is a short version of Avellaneda's paper The picture bellow provides a summary of the equations. Do I understand correctly that in order to trade OU process ...
4
votes
0answers
82 views

Is it important to equalize the minimum price fluctuation in pairs trading?

For example, suppose we were trading a strategy which buys one Brent contract and sells one Gasoil contract. The minimum price fluctuation for a Brent contract is \$10, and the minimum price ...
4
votes
0answers
391 views

pairs trading detrend the spread

I have calculated a hedge ratio that generates a mean reverting spread (stationary, without trends) 60-70% of the time. But the remaining 30% of the time, it seems like there is a trend in the spread. ...
4
votes
2answers
295 views

Cointegration and Ratio Pair Trading

I'm having some confusion doing Engle-Granger Cointegration test and then trade the ratio. Methodology: Run an OLS fit for A and B price time series without a constant. Therefore, $\hat{Y} = \gamma \...
3
votes
1answer
1k views

The meaning of Ornstein-Uhlenbeck parameters

I am trying to understand theOrnstein-Uhlenbeck process $dX_t = \kappa(\theta-X_t)dt + \sigma dW_t$ my question is what is the meaning of the parameters? and assuming that we know those parameters ...
3
votes
1answer
2k views

What is the pseudo code for a pairs trading strategy?

I am trying to learn about pairs trading strategy. I know that we have to long and short cointegrated assests simultaneously. But I still have some confusion in how the strategy works. I wrote the ...
3
votes
2answers
583 views

Need help on cointegration

I tried to test stock pairs for pairs trading. There are two questions I am not sure. I am not using ADF to test the log difference between two stocks. But I also see people using Johansen test. What'...
3
votes
3answers
185 views

what are the criteria to select pairs?

I'm new to this forum, this is the first question I posted. I have many candidate pairs and I've used ADF test to make a first selection. There are more than 800 selected. The pairs are absolutely too ...
3
votes
1answer
216 views

How do you decide what time frame you're going to use when testing for cointegration?

I've been fiddling around with different time frames when doing tests for cointegration between two timeseries, and I've realized that the dates that you use for your start/stop of the test will ...
2
votes
2answers
797 views

main arbitrage & statistical arbitrage concepts

Can we please sumarise here some of the basic concepts, tools used in arbitrage and statistical arbitrage in real life? ARB: benefit from price difference on same asset ARB: difference between stock ...
2
votes
3answers
2k views

Dou you have an example of implementing Engle-Granger 2-step cointegration?

Does anyone know where to find an example of implementing Engle-Granger 2-step cointegration? Python's ideal, but any language will do. I've skimmed and read many articles, but understand little ...
2
votes
1answer
2k views

How does Volatility Pairs Trading work?

I've read some material related to pairs trading for equities and I understand the process of finding non-stationary pairs price series that can be cointegrated to form a stationary series. The basic ...
2
votes
1answer
2k views

ADF test in R yielding perfect cointegration. How is this possible?

I am using the famous conintegrated pairs tutorial to just different stocks for cointegration. The adf.test yeilds perfect cointegration, which I feel must be incorrect. Here is why: When I run adf....
2
votes
1answer
2k views

Multiple (linear) regression

I am looking for some inputs on a pair trading strategy that I am trying to improve with some semi-fundamental input. The basic idea is to use multiple linear regression to estimate the price of a ...
2
votes
3answers
176 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 ...
2
votes
1answer
371 views

Pair trading based on cointegration - equity line

I'm preparing a project at my Uni where I have to make a simple pair trading strategy using cointegration between two stocks. I'm stuck on the equity line calculation. I have prepared opening and ...
2
votes
2answers
234 views

2 stocks, no shorting vs shorting. (concrete questions, mean-variance)

I'd appreciate help with the following questions. Suppose there are two stocks $A$ and $B$ with expected returns $E_A, E_B >0$ and volatilities $v_A, v_B >0$, respectively . Also, suppose ...
2
votes
1answer
168 views

Is this the correct way to hedge two securities against each other?

Let's say I believe that $ts_1$ and $ts_2$ move together and I would like to pairs trade them. Am I correct in understanding that to hedge them against each other I would get their $Var_1$, $Var_2$, ...
2
votes
1answer
514 views

Mean reversion and adjusted beta for pairs trading

Trying to evaluate model for pairs trading. Consider classic formula: $\frac{dP}{P} = adt+b\frac{dQ}{Q}+dX$, where $P$ and $Q$ are stock prices, and $X$ is a mean reverting process (MRP) and $a$ is ...
2
votes
1answer
244 views

How to projectP&L or drawdowns on pair trading , trading and portfolios? [closed]

This is for planning and risk management. I am stuck on the following thoughts - Back-test the trading strategy for a period similar to the one you expect and then project. Do the above using ...
2
votes
1answer
236 views

Replicating the short part of a long-short trade using inverse ETFs

I devised a pair trading strategy going long XXX and short B*YYY. B is the quantity of shares of YYY I need to short. The problem is I can’t go short on YYY, but there is an inverse ETF for YYY ...
2
votes
1answer
2k views

Position Sizing For Ratio Pairs Trade

Ok, let's say I'm trading a spread of two stocks, X & Y, The spread is calculated as a ratio (Spread = X / Y). I use rolling stats to calculate the mean, standard deviation and hence the z-score ...
2
votes
1answer
2k views

How to build an execution trading system with CQG API?

I am currently using CQG for spread trading and have a spread trading strategy in CQG chart. I am trying to automate my spread trading strategy in CQG, but CQG told me to look at CQG API samples to ...
2
votes
0answers
160 views

Relative Value Trading of American Style Options on Futures, Calcuating hedging ratios?

I am interested in Relative Value Trading of American style options on futures and have not found a whole lot of literature on it. The best resource I have discovered so far is a few pages in Colin ...
2
votes
0answers
354 views

cointegration strategy

If it can be proved that two time series $$S_t^1=\alpha + \beta S_t^2 + \xi_t$$ representing stocks are correlated, with $\beta=-2$ and then are proved to be cointegrated, how a portfolio should be ...