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
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 ...
user avatar
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 ...
user avatar
1 vote
1 answer
64 views

What is the proper capital split/allocation between the long and short in a pairs trade?

I am trying to understand the following. If I have $100, how do I determine how much to allocate to the long and short of a pairs spread? You might say "use the hedge ratio you calculate, as that ...
user avatar
0 votes
1 answer
62 views

Pairs trading using dynamic hedge ratio - how to tell if stationarity of spread is due to genuine cointegration or shifting of hedge ratio?

I'm very new to pairs trading, and am trying it out on a few dozen pairs. It seems very natural to me to use a dynamic hedge ratio, as it seems likely that the ratio will move over time. To accomplish ...
user avatar
1 vote
0 answers
61 views

Pairs Trading - isn't any spread stationary if your rolling lin-reg window is small enough?

I have a set of 7 assets, and I have run an ADF test on all possible pair-spreads to find possible pair strategies. I am creating the spreads using a rolling window in which I run linear regression to ...
user avatar
0 votes
1 answer
94 views

Pairs trading - is regression done on log prices or log returns?

I'm getting into pairs trading (statistical arbitrage), but I keep finding different instructions on how it's done. Some sources (like this) run the linear regression (to find hedge ratio) on the log ...
user avatar
1 vote
0 answers
58 views

Simultaneous Stochastic Differential Equations

I was thinking about cointegrated time series and came up with the following simultaneous equations model: $dY_t = \alpha (Y_t - \gamma X_t)dt + \sigma dB_t$ $dX_t = \beta (Y_t - \delta X_t)dt + \tau ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
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. ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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
user avatar
  • 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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?...
user avatar
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 ...
user avatar
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 / ...
user avatar
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–...
user avatar
  • 3
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 ...
user avatar
  • 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 ...
user avatar
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 - ...
user avatar
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/...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
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,...
user avatar
0 votes
0 answers
1k views

Calculating % Return in Pairs Trading Strategy

Hi guys Could you help me here? I would like to calculate the return of a Pairs Trading strategy. For example: 18/11 - Open the Trade: I will go long on A and Short on B: Stock A : $ 32.24 Stock B ...
user avatar
  • 247
2 votes
1 answer
194 views

Pairs Trading parameters

I am looking to optimize the open/close signals and time for a pairs trading strategy my partner and I are researching. We don't want to go p-hacking so we have been trying to decide: We have 20+ ...
user avatar
  • 434
4 votes
1 answer
66 views

Negatively Correlated Assets with similar medium-term trends

Theoretically, one could have stock prices with returns $\rho_1(k)$ and $\rho_2(k)$ having mean values $\mu_1$ and $\mu_2$, but still be negatively correlated with $$ \mathbb{E}[(\rho_1(k)-\mu_1)(\...
user avatar
1 vote
1 answer
215 views

Pairs Trading situation with spread changes

I'm setting up pairs trades by summing the distances squared (SSD). After determining the best pairs, I have to track the spread between the normalized prices. Am I noticing something that is ...
user avatar
  • 247
1 vote
1 answer
261 views

Bootstrap Method for Assessing Pairs Trading Performance

After reading this paper I tried to replicate it. I almost done, but I am stuck on the section 3.6 where the author constructs a random pair (how he constructs this?) for Assessing Pairs Trading ...
user avatar
  • 247
4 votes
3 answers
690 views

Pair trading - short / long the spread

I am wading into pair trading concepts. Here is one article I've read. I understand for these strategies our intention is to go long on one asset and short another, however I do not understand what ...
user avatar
2 votes
1 answer
260 views

generalisation of cointegrated stock pair strategies to multiple cointegration

Question: as it is well known, there are strategies to trade pairs of stocks which are known to be co-integrated. See for instance here: https://medium.com/auquan/pairs-trading-data-science-...
user avatar
1 vote
0 answers
117 views

Pair trading: Hege ratio by price ratio or by regression on the stocks

So I feel things like this question do exist on the site however I failed to form a conclusion based on what was written, so I decided to formulate my query as exactly as possible and hopefully anyone ...
user avatar
  • 111
1 vote
0 answers
151 views

Pairs trading strategy: Portfolio returns and NAV

Currently trying a pairs trading approach using cointegration. Tried both formations: $$log(P_t^A)=log(P_t^B) \hat{\gamma}+\hat{\mu}+\epsilon_t \hspace{0.5cm} (1)$$ $$P_t^A=P_t^B \hat{\gamma}+\hat{\...
user avatar
  • 1,346
0 votes
1 answer
83 views

Short sale and zero investmest strategy

Suppose I want to build a pairs trading strategy. Theory says that we can create a zero-investment portfolio by going long stock A and short-selling stock B, given a certain hedge ratio. My question ...
user avatar
  • 1,346
5 votes
2 answers
1k 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 \...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
  • 177
12 votes
2 answers
13k 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 ...
user avatar
  • 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?
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 111