Description Usage Arguments Value Note Author(s) References
Compute the Black-Scholes price of a European call or put option as described in A. Meucci, "Risk and Asset Allocation", Springer, 2005.
1 2 3 4 5 | BlackScholesCallPrice(spot, K, r, vol, T)
BlackScholesPutPrice(spot, K, r, vol, T)
BlackScholesCallPutPrice(spot, K, r, vol, T)
|
spot |
[scalar] spot price of underlying |
K |
[scalar] strike of the call optioon |
r |
[scalar] risk free rate as a fraction |
vol |
[scalar] volatility of the underlying as a fraction |
T |
[scalar] time to maturity in years |
c [scalar] price of European call(s)
p [scalar] price of European put(s)
delta [scalar] delta of the call(s) or put(s)
cash [scalar] cash held in a replicating portfolio
Code is vectorized, so the inputs can be vectors or matrices (but sizes must match)
Xavier Valls flamejat@gmail.com
A. Meucci - "Exercises in Advanced Risk and Portfolio Management" http://symmys.com/node/170.
See Meucci's script for "BlackScholesCallPrice.m"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.