Black Scholes Model

DaveJ

Member
I put this together to help me with deriving the option pricing and greeks for another spreadsheet I'm working on. I've built out formulas as well as created UDF's (User Defined Functions) for the option greeks. You can quickly see why the vba coding is more efficient than building lengthy equations.

Sharing with the community.

Dave
 

Attachments

@DaveJ Thank you for sharing!
The biggest question for me is where to take volatility number, especially if I am to try to calculate options prices for the past date.
Do you know how to deal with it?
 
Any reason why a cell reference does not work with UDF ?
I was trying to use IV using RTD but I am getting #VALUE! for the VBA UDF
It works with the excel formula though
 
Any reason why a cell reference does not work with UDF ?
I was trying to use IV using RTD but I am getting #VALUE! for the VBA UDF
It works with the excel formula though
In the spreadsheet I shared, cell references is exactly what I'm using for the UDF inputs. I do know the rtd feed for IV comes in not useable as a number. I use the VALUE formula around the RTD for IV to fix that.

ie.
=VALUE(RTD("tos.rtd",,"Impl_Vol","."&$K11))

No idea why IV has this oddity to it. The other rtd functions work fine without the additional value step.
 
Last edited:
Thanks for the tip That did the trick
I looks like VBA needs a numerical value instead of text or something else just for this IMPL_VOL as you said the other inputs are working without it
 
Top
Contact Us