Quote from Kevin Schmit:
Thanks. Looks interesting.
You've put up a number of free apps. Are you, at some point, going to release commercial versions?
well free is ... free. meaning all the not so fun stuff is left off. If there is any way I can recoup my time in providing installers, docs, support I wouldQuote from sle:
I am sorry, being a bit thick here. Did you write a dividend curve stripper based on quantlib functionality or are you trying to tell me that quantlib contains a pre-packaged dividend curve stripper?
dividendYield = FlatForward(settlementDate, 0.00, Actual365Fixed())
process = BlackScholesMertonProcess(QuoteHandle(underlying),
YieldTermStructureHandle(dividendYield),
YieldTermStructureHandle(riskFreeRate),
BlackVolTermStructureHandle(volatility))
option = VanillaOption(payoff, exercise)
option.setPricingEngine(AnalyticEuropeanEngine(process))
Got it now - you expect the user to provide the dividend yield. I was kind-off thinking that you strip a discrete dividend curve from the option chain and the user only has to provide the dividend dates. That's the "right" way, I can post an excel example for a single slice so you can see the difference in implied vols and more importantly, Greeks. I am pretty sure quantlib provides all of the tools necessary to make that calculation, but i can understand if it's a pain to implement. In fact, ideally you should do a two-tier calculator where you calculate the borrow rate for non-dividend expirations first and then use that + interest rate (OIS or Ts these days) to do a second pass and calculate discrete dividend "drops" for the days of the dividends.Quote from 2rosy:
quantlib provides the dividend curve; you just need to pass in the yield.