Backtesting a Trading Strategy in Python With AI Generated Code

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

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

  • @RyanOConnellCFA
    @RyanOConnellCFA  2 месяца назад +1

    🤖 Sign Up For Datalore:
    jb.gg/check-out-datalore
    💾 Download Free Code & AI Prompts Automatically:
    jb.gg/datalore-report
    🖺 Link to Full Article:
    jb.gg/blog-datalore

  • @Abhinavjain2004
    @Abhinavjain2004 Месяц назад +3

    Sir, I want to express my heartfelt gratitude. You are truly one of the best teachers and a guiding light for many mathematics and computer science students. Your videos are incredibly insightful and make learning so much easier.
    Thank you for sharing your vast knowledge with us.
    If possible, could you consider creating a course or youtube playlist on Python for Quantitative Finance, covering everything from beginner to advanced topics such as risk models, option pricing, and algorithmic trading?
    It would be extremely helpful and invaluable for students pursuing a career in quantitative finance.
    Thank you once again for your dedication and generosity in teaching.
    🙏🙏

    • @RyanOConnellCFA
      @RyanOConnellCFA  29 дней назад

      Thank you so much for the awesome feedback! I have gotten started on a playlist of this nature here: ruclips.net/p/PLPe-_ytPHqyg4ap7hysD4pOBJMz0mnLly

  • @SariKhayyal
    @SariKhayyal 2 месяца назад +3

    Great presentation! As you noted, if you factor in the 10 US Treasury note average interest rate over the past 10 years (2.0377%) the Sharpe Ratio works out to 0.730973 for the Mean Reversion Strategy, versus 0.776654 for the DIA, and this also doesn't include transaction costs - as you also mentioned - so caveat emptor for the implementation of this strategy.

    • @RyanOConnellCFA
      @RyanOConnellCFA  2 месяца назад

      Thank you and very good point! A more accurate backtest would include the risk free rate. I think a good way to adjust the prompt would be to ask the AI to source data on the 10 year treasury rates over the last 10 years, average it, and then include it in the sharpe ratio calculation as you hinted at

  • @arnavsutodiya4468
    @arnavsutodiya4468 4 дня назад

    Love this video man. Really simple and useful.

  • @SlashnKashmir
    @SlashnKashmir 2 месяца назад +2

    Great video. Please continue similar strategy+coding concept.

    • @RyanOConnellCFA
      @RyanOConnellCFA  2 месяца назад

      Thank you! This video seems to be a hit so I will definitely make more strategy and coding videos in the future

  • @victoricus1
    @victoricus1 3 дня назад

    I wonder if the results change if you use perplexity or chat gpt

  • @pablomoure2963
    @pablomoure2963 2 месяца назад +1

    Top notch video man¡ Could you please make a video setting up this strategy (or whichever you prefer) in a demo broker account? It would be nice to understand how to connect to broker apis, so we know the whole process end to end. Cheers

    • @RyanOConnellCFA
      @RyanOConnellCFA  2 месяца назад +2

      Hey Pablo, great idea! I have thought of creating a series of videos on setting up algorithmic trading strategies in a paper trading account (fake money for practicing) so I will absolutely look into it in the future

  • @shih-binshih9889
    @shih-binshih9889 2 месяца назад +1

    thanks for sharing, always learning a lots from your video!!!

    • @RyanOConnellCFA
      @RyanOConnellCFA  2 месяца назад

      Much appreciated and glad to hear that you are getting value out of it!

  • @alwikah5664
    @alwikah5664 2 месяца назад +1

    Top video.
    Possible to do the same process with Forex (EURUSD or GBPUSD) ?
    Thanks a lot !!!

    • @RyanOConnellCFA
      @RyanOConnellCFA  2 месяца назад

      I appreciate it and thank you for the video idea! I can look into this as a potential future video topic