powered by
Calculates the net parameter value for a double vertical option spread
visual(type, parameter, s, si, x1, x2, x3, x4, v1, v2 = v1, v3 = v1, v4 = v1, ti, t1, t2 = t1, t3 = t1, t4 = t1, r = 0.02, d = 0, ls = 1)
Character String: "call" or "put"
Character String: "premium", "delta", "gamma", "vega", "theta", "rho"
Spot Price
Initial Spot Price
Option 1 Strike
Option 2 Strike
Option 3 Strike
Option 4 Strike
Option 1 Volatility
Option 2 Volatility
Option 3 Volatility
Option 4 Volatility
Initial Years to Maturity
Option 1 years to maturity
Annualized continuously compounded risk-free rate
Annualized continuously compounded dividend yield
Numerical either 1 or -1
Returns a Numerical value
# NOT RUN { visual(type = "call", parameter = "premium", s = 100, si = 100, x1 = 90, x2 = 95, x3 = 105, x4 = 110, v1 = 0.20, ti = 45/365, t1 = 45/365) # }
Run the code above in your browser using DataLab