powered by
Calculates the vega of a European- style call and put option
optionvega(s, x, sigma, t, r, d = 0)
Spot price of the underlying asset
Strike price of the option
Implied volatility of the underlying asset price, defined as the annualized standard deviation of the asset returns
Time to maturity in years
Annual continuously-compounded risk-free rate, use r.cont
Annual continuously-compounded dividend yield, use r.cont
Returns the option vega
Vega measures the change in the option's value given a 1
# NOT RUN { optionvega(100, 100, 0.20, (45/365), 0.02, 0.02) # }
Run the code above in your browser using DataLab