The Magic Formula for Trading Options Risk Free

Поділитися
Вставка
  • Опубліковано 4 чер 2022
  • In 1978, Breeden and Litzenberger showed how under risk-neutral pricing, that the discounted Risk-Neutral Density (RND) function could be estimated directly from option prices.
    In this video we demonstrate how to use the Breeden-Litzenberger formula to derive the risk-neutral density function from European call options with stochastic volatilty under the Heston model. We price the call options using the semi-analytical solution for the Heston model using rectangular integration and compare this to the QuantLib implementation in Python. Here we compare the differences in prices and explain why there are differences - floating point errors.
    Once we have the option prices (or possibly market prices) we can implement the Breeden-Litzenberger formula easily using pandas dataframe shift functions. To utilise the estimated pdf within other calculations, we need to make use of scipy's interpolation function. The Risk-Neutral Density function can they be used to price other complex derivatives given a time to maturity.
    ★ ★ Code Available on GitHub ★ ★
    GitHub: github.com/TheQuantPy
    Specific Tutorial Link: github.com/TheQuantPy/youtube...
    ★ ★ QuantPy GitHub ★ ★
    Collection of resources used on QuantPy UA-cam channel. github.com/thequantpy
    ★ ★ Discord Community ★ ★
    Join a small niche community of like-minded quants on discord. / discord
    ★ ★ Support our Patreon Community ★ ★
    Get access to Jupyter Notebooks that can run in the browser without downloading python.
    / quantpy
    ★ ★ ThetaData API ★ ★
    ThetaData's API provides both realtime and historical options data for end-of-day, and intraday trades and quotes. Use coupon 'QPY1' to receive 20% off on your first month.
    www.thetadata.net/
    ★ ★ Online Quant Tutorials ★ ★
    WEBSITE: quantpy.com.au
    ★ ★ Contact Us ★ ★
    EMAIL: pythonforquants@gmail.com
    Disclaimer: All ideas, opinions, recommendations and/or forecasts, expressed or implied in this content, are for informational and educational purposes only and should not be construed as financial product advice or an inducement or instruction to invest, trade, and/or speculate in the markets. Any action or refraining from action; investments, trades, and/or speculations made in light of the ideas, opinions, and/or forecasts, expressed or implied in this content, are committed at your own risk an consequence, financial or otherwise. As an affiliate of ThetaData, QuantPy Pty Ltd is compensated for any purchases made through the link provided in this description.

КОМЕНТАРІ • 27

  • @cwgobble
    @cwgobble Рік тому +3

    Another good read on this is from Robert Martin on his blog - reasonable deviations

  • @kirillbogomolov9298
    @kirillbogomolov9298 2 роки тому +4

    Awesome videos, a lot of useful information. Please keep doing this!!!!!

    • @denisplotnikov6875
      @denisplotnikov6875 Рік тому

      Кирилл, привет! А ты изучаешь квантовые финансы сейчас?

  • @kilocesar
    @kilocesar 2 місяці тому +1

    Incredible content congratulations!

  • @dereckkevinamesquitapfocco2019
    @dereckkevinamesquitapfocco2019 2 роки тому +4

    The best content I saw on UA-cam. Do you have any videos in which you recommend math books?

    • @QuantPy
      @QuantPy  2 роки тому +3

      Cheers, I appreciate the comment. Yes ua-cam.com/video/ZSavDAaKy50/v-deo.html

  • @Cris-de6tj
    @Cris-de6tj Рік тому +9

    I have been following your videos and now I have some questions. What is next? Someone should seek opportunities with different price (ej: My broker tell me the option "a" has a price of 0.35, but in my model I price is 0.36, so its "cheaper than should be" so I bought it?). Sorry for my english. I am from Chile and I really enjoy your videos. Best regards and thanks for the knowledge

  • @shukailu6731
    @shukailu6731 3 місяці тому +1

    This is awesome

  • @kaiwang2924
    @kaiwang2924 11 місяців тому

    Wonderful

  • @shaunappleton5153
    @shaunappleton5153 Рік тому +2

    To improve your integration you may be able to use the Romberg method

  • @michelebellipanni2373
    @michelebellipanni2373 2 роки тому +6

    Really useful content.I have been using MATLAB so far and would like to learn more about Python.

    • @QuantPy
      @QuantPy  2 роки тому +2

      Thanks for the comment, after Matlab, you’ll find python a natural progression

  • @geoff99999
    @geoff99999 2 роки тому +6

    Very interesting. Do you know how this could be done using American options? I don't think Breeden-Litzenberger would work.

  • @5961ffffbbb
    @5961ffffbbb Рік тому +2

    could you show it in action? Maybe some trades of it

  • @husseinnasser4428
    @husseinnasser4428 2 роки тому +1

    Love the videos!! Can you please make a vid on Sticky Delta/Sticky Strike and how it touches on the Spot-Vol covariance?

  • @gideonw4889
    @gideonw4889 Рік тому

    Good stuff. Ex quant?

  • @epi9820
    @epi9820 7 місяців тому +1

    any way to convert the formula for European option to the one for American option?

  • @sajithsj9276
    @sajithsj9276 2 роки тому

    Hello sir
    I'm from india i used to trade in indian indices which expires every week of Thursday. Are there any indices in asx which expires on every Thursday with good volume

  • @gideonw4889
    @gideonw4889 Рік тому

    I think you really mean risk neutral!!

  • @MrEo89
    @MrEo89 2 роки тому

    Why are you using 365 days and not 252 (or 254 as I’ve seen in some HFund white papers)?

    • @QuantPy
      @QuantPy  2 роки тому +1

      Heston model uses continuous time in years. 365 days in a year.
      Sometimes when using market data, there are 252 (estimated) trading days per year.

  • @Brianlaqra
    @Brianlaqra 11 місяців тому +1

    It s all good,.Can you make money in options? That is all that matter.

    • @28jery
      @28jery 5 місяців тому

      No just lost money

    • @OurNewestMember
      @OurNewestMember 2 місяці тому

      ​@@28jery you can make it up in volume

  • @anuragbisht1200
    @anuragbisht1200 7 місяців тому

    this is only for brainy people not an idiot like me,

  • @rohitgangal393
    @rohitgangal393 Рік тому

    hi sir i am indian name Rohit Gangal I want to make Trading System on indian stock market would you like to help me or any charges