powered by
Calculates the key analytics of a vertical spread
vertical(options = c("call", "put"), s, x1, x2, t, r, sigma, sigma2 = sigma, vol = sigma, d = 0)
Character string. Either "call", or "put"
Spot price of the underlying asset
Strike price of the short option
Strike price of the long option
Time to expiration in years
Annual continuously compounded risk-free rate
Implied volatility of the short option (annualized)
Implied volatility of the long option (annualized)
Manual over-ride for the volatility of the underlying asset (annualized)
Annual continuously compounded dividend yield
Returns a data.frame
# NOT RUN { vertical("call", s = 100, x1 = 90, x2 = 110, t = (45/365), r = 0.025, sigma = 0.20, vol = 0.25) # }
Run the code above in your browser using DataLab