powered by
Calculates the key analytics of a Double Vertical Credit Spread
dv(s, x1, x2, x3, x4, t, r, sigma, sigma2 = sigma, sigma3 = sigma, sigma4 = sigma, vol = sigma, d = 0)
Spot price of the underlying asset
Strike price of the lower strike (long) put option
Strike price of the higher strike (short) put option
Strike price of the lower strike (short) call option
Strike price of the higher strike (long) call option
Time to expiration in years
Annual continuously compounded risk-free rate
Implied volatility of the lower strike (long) put option (annualized)
Implied volatility of the higher strike (short) put option (annualized)
Implied volatility of the lower strike (short) call option (annualized)
Implied volatility of the higher strike (long) call option (annualized)
Manual over-ride for the volatility of the underlying asset (annualized)
Annual continuously compounded dividend yield
Returns a data.frame
# NOT RUN { dv(s = 100, x1 = 90, x2 = 95, x3 = 105, x4 = 110, t = 0.08, r = 0.02, sigma = 0.2, vol = 0.3) # }
Run the code above in your browser using DataLab