powered by
Computes the implied volatility of an option, either a call or put, given the option premium and key parameters
iv.calc(type, price, s, x, t, r, d = 0)
String argument, either "call" or "put"
Current price of the option
Spot price of the underlying asset
Strike Price of the underlying asset
Time to expiration in years
Annual continuously compounded risk-free rate
Annual continuously compounded dividend yield
Returns a single option's implied volatility
# NOT RUN { iv.calc(type = "call", price = 2.93, s = 100, x = 100, t = (45/365), r = 0.02, d = 0) # }
Run the code above in your browser using DataLab