Python Forum
Finance: Black Scholes Model not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finance: Black Scholes Model not working
#4
shouldn't you using historical volatility, not implied volatility?

looking further at the source code. if volatility == 0, the if volatility: will be False and the rest of the block will not be executed and the greeks will be None. However if you look at internal methods like _delta(), _delta2() etc., some of them have if self.volatility == 0 or self.daysToExpiration == 0. So there is problem - there is special handling of case when volatility == 0, yet, it never get executed.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Finance: Black Scholes Model not working - by pwt - May-27-2020, 05:27 AM
RE: Finance: Black Scholes Model not working - by buran - May-27-2020, 07:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  model.fit and model.predict errors hatflyer 6 1,631 Nov-10-2023, 01:39 AM
Last Post: hatflyer
  Python help for yahoo finance! Zshanar 7 3,536 Jul-31-2022, 05:27 PM
Last Post: paulyan
  remove all color but red, then replace it with black kucingkembar 14 7,542 Dec-29-2021, 07:50 PM
Last Post: deanhystad
  FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles Anldra12 10 6,046 Jun-11-2021, 04:48 PM
Last Post: snippsat
  Checkbuttons always come up as black boxes regardless of the state kenwatts275 5 4,922 Jul-07-2020, 08:00 PM
Last Post: kenwatts275
  How to use nb-black python cde formatter ErnestTBass 3 7,020 Jun-04-2020, 03:51 PM
Last Post: ErnestTBass
  after using openpyxl to add colors to script, black shows up white online in excel Soundtechscott 1 3,761 Jun-08-2019, 10:33 PM
Last Post: Soundtechscott
  Because the emoji appears black and white at the exit ? nerd 3 5,720 Jan-28-2019, 11:34 PM
Last Post: nerd
  Real time pricing Yahoo finance nathanz 1 2,622 Aug-09-2018, 01:02 PM
Last Post: metulburr
  Python interface only black and white........ Wilson 3 6,318 Jul-15-2017, 01:20 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020