Introduction to Pairs Trading

Поделиться
HTML-код
  • Опубликовано: 26 июн 2024
  • 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 2 месяца назад

    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 2 года назад +1

    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 года назад +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 лет назад +8

    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 Год назад

    Hi what is that balance( Traju) symbol on trading view chart

  • @TerryLDawson
    @TerryLDawson 2 года назад

    Listening to the soon to be the greats!

  • @Asparuh.Emilov
    @Asparuh.Emilov Месяц назад

    I don't understand why you have to use synthetic data instead of real data?

  • @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 года назад +2

      The p-values should be the same for coint(S1,S2) and coint(S2,S1). The scores should be opposite in sign.

    • @danielradford7139
      @danielradford7139 Год назад +1

      @@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 года назад +14

    watch these at 2x speed.

  • @JMoney-ne3to
    @JMoney-ne3to 2 года назад

    Anyone able to get the rolling beta to work? Nothing but errors

  • @navketan1965
    @navketan1965 10 месяцев назад

    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.

  • @HighPowerOptionsTrades
    @HighPowerOptionsTrades Месяц назад

    Seven years ahead of your time with the time stamps 🤣😂🤣😂🤣😂🤣😂🤣😂💎💎💎💎💎💎💎💎💎💎

  • @Northstar2000
    @Northstar2000 4 года назад +2

    This is 'introduction to pairs trading' lol.

  • @GohOnLeeds
    @GohOnLeeds 7 месяцев назад

    "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 ;-)