(new SimpleQuote
(price)));
shared_ptr<StrikedTypePayoff> pPayoff(new PlainVanillaPayoff(side
== CALL ? Option::Call : Option::Put, strike));
Handle<BlackVolTermStructure> flatVolTS
(shared_ptr<BlackVolTermStructure>(new BlackConstantVol(_settlement,
_calendar,
vol,
_dayCounter)));
Handle<YieldTermStructure> _flatTermStructure
(shared_ptr<YieldTermStructure>(new FlatForward(_settlement,
_riskFreeRate,
_dayCounter)));
shared_ptr<BlackScholesProcess> pProcess(new BlackScholesProcess
(underlyingHndl,
_flatTermStructure,
flatVolTS));
EuropeanOption eo(pPayoff, pExercise);
shared_ptr<PricingEngine> pPE(new AnalyticEuropeanEngine(pProcess));
eo.setPricingEngine(pPE);
I would like to cache most of the instances here and change the
contract conditions at runtime to calculate option chains.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users