Introduction to Pairs Trading

  Рет қаралды 70,624

Quantopian

Quantopian

Күн бұрын

Pairs trading is a form of mean reversion that has a distinct advantage of always being hedged against market movements. It is generally a high alpha strategy when backed up by some rigorous statistics. This notebook runs through the following concepts
What is cointegration?
How to test for cointegration?
What is pairs trading?
How to find cointegrated pairs?
How to generate a tradeable signal?
The notebook is intended to be an introduction to the concept, and whereas this notebook only features one pair, you would probably want your algorithm to consider many pairs at once.
Please find all the lectures here: www.quantopian.com/lectures
To learn more about Quantopian, visit us at: www.quantopian.com.
The notebook was originally created for a presentation at Harvard’s Applied CS department and has since been used at Stanford, Cornell, and several other venues. If you’re interested in learning more about how Quantopian is being used as a teaching tool at top universities, please contact me at delaney@quantopian.com
Disclaimer
Quantopian provides this presentation to help people write trading algorithms - it is not intended to provide investment advice.
More specifically, the material is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory or other services by Quantopian.
In addition, the content neither constitutes investment advice nor offers any opinion with respect to the suitability of any security or any specific investment. Quantopian makes no guarantees as to accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Пікірлер: 22
@toshiro6589
@toshiro6589 3 ай бұрын
For multiple comparisons, just divide p value with number of comparisons and that is your cut off value. It is called Bonferroni correction
@ankuronlyu
@ankuronlyu Жыл бұрын
video is very helpful for the study
@vineetgupta93
@vineetgupta93 3 жыл бұрын
Hi all, Great video. Thanks! I have probably a very basic question. If lets say for pair trading analysis I am using ln(prices) and I determine my beta or the hedge ratio, and lets say we have checked and are fairly certain that this is indeed a pair driven by some fundamentals. Now, when we actually put the trades in, do we trade with this beta determined using ln prices, or do we need to make some adjustments for using ln prices? Thanks Vin
@15chris45chris
@15chris45chris 2 жыл бұрын
Having trouble checking the link to the site. Was hoping to be able to check some of the python code for the random walk data sets.
@khalidalialghamdi
@khalidalialghamdi 7 жыл бұрын
Awesome work but you made shorting sounds very complicated more than what it should be. ( in my opinion) you simply could say shorting is borrowing a product for a fee, sell it in the market for a high price hoping it would get cheaper, buy it back and turn it back to the loner and keep the cash difference . you guys are awesome :)
@ajourney179
@ajourney179 3 жыл бұрын
okay. video is good. how to take trades in live market ? how to calculate these things when we are in live market ?
@amriksingh5003
@amriksingh5003 2 жыл бұрын
Hi what is that balance( Traju) symbol on trading view chart
@TerryLDawson
@TerryLDawson 2 жыл бұрын
Listening to the soon to be the greats!
@JMoney-ne3to
@JMoney-ne3to 2 жыл бұрын
Anyone able to get the rolling beta to work? Nothing but errors
@marcelocanetta1892
@marcelocanetta1892 3 жыл бұрын
Hello! Thank you for the video. Why is not the same result coint(S1, S2) and coint(S2, S1). How to chosse the order of the variables??
@theliftedbar4610
@theliftedbar4610 3 жыл бұрын
The p-values should be the same for coint(S1,S2) and coint(S2,S1). The scores should be opposite in sign.
@danielradford7139
@danielradford7139 Жыл бұрын
@@theliftedbar4610 Not true. Regression S1 on S2 is not the same as S2 on S1. In one you minimize the vertical residuals the other the horizontal. In one case it will lead to a much more significant lambda test statistic (what the ADF is based on )
@ephi1440
@ephi1440 4 жыл бұрын
watch these at 2x speed.
@Asparuh.Emilov
@Asparuh.Emilov 2 ай бұрын
I don't understand why you have to use synthetic data instead of real data?
@navketan1965
@navketan1965 11 ай бұрын
Sir, Have you tried pair trading forex using rsi7 ,rsi14,rsi30 (add them up for comparison) say on hourly chart & selling strong pair & buying weak pair--pairs have to be highly correlated(eg aud/usd and nzd/usd OR dow30 & sp500).One can do this on any correlating underlying stocks/commodities/futures/crypto/bonds. Trading on hourly charts there would be tons of opportunities all year around.
@Northstar2000
@Northstar2000 4 жыл бұрын
This is 'introduction to pairs trading' lol.
@HighPowerOptionsTrades
@HighPowerOptionsTrades 2 ай бұрын
Seven years ahead of your time with the time stamps 🤣😂🤣😂🤣😂🤣😂🤣😂💎💎💎💎💎💎💎💎💎💎
@GohOnLeeds
@GohOnLeeds 8 ай бұрын
"Cointegration extracts a sideways market from two different trending markets through a linear regression" .... it's pretty simple definition, dude. You sound like you are giving birth every time you try to define it. Very surprising since you have probably had to define it a million times ;-)
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 127 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 14 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 91 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
Jim Cramer cuts through the noise of today's market decline
13:42
CNBC Television
Рет қаралды 122 М.
Quant Strategy: Pairs Trading Algorithm (Mean Reversion)
15:00
Spencer Pao
Рет қаралды 58 М.
"10 Ways Backtests Lie" by Tucker Balch
39:36
Quantopian
Рет қаралды 20 М.
Integration, Cointegration, and Stationarity
21:23
Quantopian
Рет қаралды 54 М.
Quantopian Lecture Series: Kalman Filters
11:33
Quantopian
Рет қаралды 48 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 817 М.