powered by
Creates a data.frame containing both call and put option greeks; delta, gamma, vega, theta, rho and the option premium
opteval(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 the function r.cont
Annual continuously-compounded dividend yield, use the function r.cont
Returns a data.frame containing the call and put option premium and greeks:
Premium
Delta
Gamma
Vega
Theta
Rho
# NOT RUN { opteval(100, 100, 0.20, (45/365), 0.02, 0.02) # }
Run the code above in your browser using DataLab