26#include <boost/make_shared.hpp>
30#include <ql/pricingengines/barrier/analyticdoublebarrierbinaryengine.hpp>
31#include <ql/processes/blackscholesprocess.hpp>
51 virtual string keyImpl(
const string& assetName,
const Currency& ccy)
override {
52 return assetName + ccy.code();
55 QuantLib::ext::shared_ptr<GeneralizedBlackScholesProcess>
57 Handle<BlackVolTermStructure> vol =
59 if (!timePoints.empty()) {
60 vol = Handle<BlackVolTermStructure>(
61 QuantLib::ext::make_shared<QuantExt::BlackMonotoneVarVolTermStructure>(vol, timePoints));
62 vol->enableExtrapolation();
64 return QuantLib::ext::make_shared<GeneralizedBlackScholesProcess>(
82 virtual QuantLib::ext::shared_ptr<PricingEngine>
engineImpl(
const string& assetName,
const Currency& ccy)
override {
85 engine_ =
"AnalyticDoubleBarrierBinaryEngine";
86 return QuantLib::ext::make_shared<QuantLib::AnalyticDoubleBarrierBinaryEngine>(gbsp);
Abstract template engine builder class.
Abstract template EngineBuilder class that can cache engines and coupon pricers.
QuantLib::ext::shared_ptr< Market > market_
const string & engine() const
Return the engine name.
const string & model() const
Return the model name.
const string & configuration(const MarketContext &key)
Return a configuration (or the default one if key not found)
Analytical Engine Builder for EQ Double Touch Options.
EquityDoubleTouchOptionAnalyticEngineBuilder()
virtual QuantLib::ext::shared_ptr< PricingEngine > engineImpl(const string &assetName, const Currency &ccy) override
Abstract Engine Builder for EQ Double Touch Options.
EquityDoubleTouchOptionEngineBuilder(const string &model, const string &engine)
QuantLib::ext::shared_ptr< GeneralizedBlackScholesProcess > getBlackScholesProcess(const string &assetName, const Currency &ccy, const std::vector< Time > &timePoints={})
virtual string keyImpl(const string &assetName, const Currency &ccy) override
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.