"Near Bulletproof indicator"? Constructing JPMorgans Trading Strategy [in Python] 📈VIX/S&P500

Поделиться
HTML-код
  • Опубликовано: 20 июн 2024
  • In this video we are constructing a Trading Strategy presented by JPMorgan Strategists in Python. The strategy buys the S&P500 and holds it for 6 months when the VIX (Cboe Volatility Index) rises by more than 50% of it's 1-month moving average.
    Get the Notebook/Source code by becoming a Tier-2 Channel member:
    / algovibes
    If you enjoy this kind of content please let me know by hitting like, leaving your thoughts and subscribing! It is a huge support for me.
    It should be noted that the last 2 mean returns are NOT YET finalized. The November signal has to be evaluated at May 26 and the January signal at July 25.
    Bloomberg article:
    www.bloomberg.com/news/articl...
    How are stock returns calculated and cumultated:
    • How To Calculate Stock...
    DISCLAIMER:
    THIS VIDEO IS NOT AN INVESTMENT ADVICE AND IS FOR INFORMATIONAL AND EDUCATIONAL PURPOSES ONLY!
    #Python #Trading #Strategy #VIX #S&P500

Комментарии • 62

  • @rajeevmenon1975
    @rajeevmenon1975 2 года назад +22

    Hey AlgoVibes. You come up with so nice videos. Really engrossing ones. Please keep coming up with more of such quality contents. God bless you

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

      Thank you so much Rajeev and everyone who liked your comment. Appreciate your kind words!

  • @justcars2454
    @justcars2454 2 года назад +1

    THANK YOU ALGOVIBES

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

      WELCOME justcARS 😛

  • @PavelSumik
    @PavelSumik 2 года назад +1

    just wonderful, thank you

  • @rraul
    @rraul 2 года назад +1

    Thanks for sharing. Always nice videos

  • @ventiladorbueno1846
    @ventiladorbueno1846 2 года назад +1

    Very interesting 🧐 thank you

  • @victorbartolo287
    @victorbartolo287 2 года назад +2

    Very interesting and once again congratulations for producing such clean and easy to understand code. First of all it looks like the indicator fails when the VIX goes super high but the the rest of the signals seem pretty decent. But it is probably difficult to determine (in real time) if the value of the VIX will continue to rise if the indicator is used.

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

      Thanks man. Yeah, that's a good observation indeed.

  • @prashantdani8527
    @prashantdani8527 2 года назад +1

    Yes really nice video one can learn a lot

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

      Thanks a lot Prashant

  • @prajwaltuladhar6742
    @prajwaltuladhar6742 2 года назад +1

    Amazing content as always! Would love to see Low Volatility portfolio construction and its alpha generation, etc.

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

      Thanks a lot man :-)

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

    Amazing content, keep it up please.

    • @Algovibes
      @Algovibes  Год назад

      Thank you very much mate

  • @rayanarab669
    @rayanarab669 2 года назад +1

    Great video

  • @ahmetbinatlioglu8848
    @ahmetbinatlioglu8848 2 года назад +1

    Bro you are the best

    • @Algovibes
      @Algovibes  2 года назад +1

      Thank you my friend!

  • @pfz5487
    @pfz5487 2 года назад +1

    this is cool, thx a lot

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

      Thx for watching :-)

  • @mohakaz4157
    @mohakaz4157 2 года назад +1

    Thanks

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

    Fantastic video. So much to absorb, I'm going to watch it again. At the beginning you're taking the rolling mean of the previous 30 days, but that's not a month, it's 6 weeks (plus many/most(?) 6 week periods would include a holiday). This probably wouldn't impact the number of entry signals, but it might shift the timing of the entry by a day or two (?), which might account for the slight difference to the JPM results?

    • @Algovibes
      @Algovibes  Год назад

      Thanks a lot mate. That's a good observation and should explain some of the minor differences indeed.

  • @victorl.mercado5838
    @victorl.mercado5838 Год назад

    Another great video. Another possible explanation for the lower mean returns in your test is that their one month moving average was probably 21 trading days (not 30 days),

    • @Algovibes
      @Algovibes  Год назад

      Thanks a lot Victor. Good point!

  • @itayhilel2168
    @itayhilel2168 2 года назад +1

    This was very interesting!! Useful? Not so much, but very interesting

    • @TheLiquidMix
      @TheLiquidMix 2 года назад +1

      could set up your algo bot to be triggered after this indicator has been met, then trade for the period of 6 months, knowing youll most likely out perform the market?

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

    Is playing with the core parameters a sensible strategy to improve the performance of these types of strategies? For example, changing the MA window to 10 days increases the mean return to around 10 percent. Does that make sense? Thanks again for the great video.

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

      Make sense, yes! Thanks a lot for watching and sharing your thoughts.

  • @paulslacknoise
    @paulslacknoise 2 года назад +1

    Amazing stuff! On a side note, would be interesting to test this strategy again in like 2 years. Chances are high all profits are getting wiped out but let’s see 😂

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

      Thanks mate, Let's see about your claim 😛

    • @bitterbob30
      @bitterbob30 2 года назад +1

      JPM has the caveat that the signal doesn't apply during a recession. Problem is you can't confirm a recession until two quarters (six months) at least.

  • @davidh4632
    @davidh4632 2 года назад +2

    Love your work, but the risk is the model is optimised in specifying 50% deviation from vix mav, further you don't know when u are in a technical recession until after the event due to lag in gdp being released. How about using vix as input into random forest model to predict when to buy stocks?

    • @Algovibes
      @Algovibes  2 года назад +1

      Thanks a lot man. Yea that's a valid point.

  • @hannes6116
    @hannes6116 2 года назад +1

    MA20 may fit better since Stock trading ist closed on the Weekend.
    Further it would bei nice too see the Signals in the chart.
    BUT once more thanks great video

  • @adrenaline1
    @adrenaline1 2 года назад +1

    Could I offer a different take?
    While the signal looks programmed as per the article, I believe JPM's instruction after that was to use the signal to buy the S&P 500.
    Since I am relatively new to Pandas , I was wondering how one could combined financial data of two tickers. Maybe the strat could be reasessed for 6month performance on the S&P when using the VIX signal

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

      Hi Andre, sure!
      Be invited to check out my Python for Finance playlist. I am using 1.000s of tickers in one dataframe and trading strategy.

  • @harrybellingham98
    @harrybellingham98 2 года назад +1

    any chance you could do a video on tradingview webhooks and python?

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

      Not planned in the near future, but noted. Thanks for your suggestion!

  • @Brennmeister
    @Brennmeister 2 года назад +1

    Hi,it’s me again :)
    I have maybe an cool challenge.
    Try to generat a Elliot wave indicator. It uses some series of highs an lows. The challenge is to indicate every Elliot wave in a df.

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

      Hi, happy to read your name :-)
      Thanks for watching and thanks for the suggestion.

  • @chidubemezimorah2405
    @chidubemezimorah2405 2 года назад +1

    Is Algovibes using a website or program to run his python? If so which one

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

      Using Jupyter Notebook here. Be invited to check out the Python Introduction playlist. I am introducing all tools I am using there.

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

      @@Algovibes by the way, have already showed in some other video how to use python to send real time orders mainly for stocks? Something like using the interactive brokers API or alpaca? I know you have done that for crypto using binance. Thanks for the great content!

  • @bitterbob30
    @bitterbob30 2 года назад +1

    Great video as it's very instructive. However, I think the signal itself is complete bollocks.
    But the great thing is you have shown us how to piece and parse the data together to think up and code our own signals to test. Thank you.

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

      Thanks a lot man. Also thanks for sharing your thoughts!

  • @kunedroid3446
    @kunedroid3446 2 года назад +2

    Couldn't you just grab the current price 6 months ahead and compare with the entry price? Not sure why we need the cumprod/accumulate all days in between. Cheers!

    • @TheLiquidMix
      @TheLiquidMix 2 года назад +2

      He has other videos for stock price returns with explanations :)

    • @Algovibes
      @Algovibes  2 года назад +1

      Cheers mate! Yes, you can. In that case you would just screen for the very last entry in the subframe and divide that by the very first entry.

  • @bdcash
    @bdcash 2 года назад +2

    Wouldn't you combine this with a stop loss? You'd need to be gutsy to hold blindly for 6 months if you were headed for -30%.

    • @Algovibes
      @Algovibes  2 года назад +1

      Sure. I was just testing the strategy as described in the article. There is probably a lot of improvement potential. In general the strategist just wanted to show the good buying opportunity in those situations.

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

      @@Algovibes Thanks, and for your content 👍

  • @its_code
    @its_code 2 года назад +1

    WOW 😜🤗🤗💕💕🤑🤑💷💶💴💵

    • @Algovibes
      @Algovibes  2 года назад +1

      😀

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

      @@Algovibes 😳❤️❤️