Vanilla Option - Price - Black Scholes - Close Form

Version 1.0.0.0 (1.32 KB) by Wei Zhang
To calculate vanilla option price by B/S
215 Downloads
Updated 11 Nov 2013

View License

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
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0