Vanilla Option - Price - Black Scholes - Close Form
The Black-Scholes formulas for the prices of European call and put options are:
c=S_0 e^(-r_f T) N(d_1 )- Ke^(-r_d T) N(d_2)
and
p=Ke^(-r_d T) N(-d_2 )- S_0 e^(-r_f T) N(-d_1)
where
d_1=(ln(S_0/K)+(r_d-r_f+σ^2/2)T)/(σ√T)
d_2=(ln(S_0/K)+(r_d-r_f-σ^2/2)T)/(σ√T)=d_1-σ√T
Cite As
Wei Zhang (2024). Vanilla Option - Price - Black Scholes - Close Form (https://www.mathworks.com/matlabcentral/fileexchange/44258-vanilla-option-price-black-scholes-close-form), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Computational Finance > Financial Toolbox >
- Computational Finance > Financial Instruments Toolbox > Price Instruments Using Functions > Equity Derivatives >
Tags
Acknowledgements
Inspired: calcGreeks: Calculate option Greeks (European Black/Scholes)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |