24#ifndef quantext_analytic_digital_american_engine_hpp
25#define quantext_analytic_digital_american_engine_hpp
27#include <ql/instruments/vanillaoption.hpp>
28#include <ql/pricingengines/vanilla/analyticdigitalamericanengine.hpp>
29#include <ql/processes/blackscholesprocess.hpp>
40 const QuantLib::Date& payDate,
const bool flipResults =
false)
46 virtual bool knock_in()
const override {
return true; }
49 ext::shared_ptr<GeneralizedBlackScholesProcess>
process_;
59 const QuantLib::Date& payDate,
const bool flipResults =
false)
61 bool knock_in()
const override {
return false; }
Analytic pricing engine for American vanilla options with digital payoff.
AnalyticDigitalAmericanEngine(ext::shared_ptr< GeneralizedBlackScholesProcess > process, const QuantLib::Date &payDate, const bool flipResults=false)
void calculate() const override
ext::shared_ptr< GeneralizedBlackScholesProcess > process_
virtual bool knock_in() const override
Analytic pricing engine for American Knock-out options with digital payoff.
bool knock_in() const override
AnalyticDigitalAmericanKOEngine(const ext::shared_ptr< GeneralizedBlackScholesProcess > &engine, const QuantLib::Date &payDate, const bool flipResults=false)