24#ifndef quantext_calibrationhelper_futureoption_hpp
25#define quantext_calibrationhelper_futureoption_hpp
27#include <ql/instruments/vanillaoption.hpp>
28#include <ql/models/calibrationhelper.hpp>
40 const Period& maturity,
const Calendar& calendar,
const Real
strike,
41 const Handle<QuantExt::PriceTermStructure>
priceCurve,
const Handle<Quote> volatility,
42 BlackCalibrationHelper::CalibrationErrorType errorType = BlackCalibrationHelper::RelativePriceError);
44 const Date& exerciseDate,
const Real
strike,
45 const Handle<QuantExt::PriceTermStructure>
priceCurve,
const Handle<Quote> volatility,
46 BlackCalibrationHelper::CalibrationErrorType errorType = BlackCalibrationHelper::RelativePriceError);
50 Real
blackPrice(Real volatility)
const override;
51 QuantLib::ext::shared_ptr<VanillaOption>
option()
const {
return option_; }
68 mutable QuantLib::ext::shared_ptr<VanillaOption>
option_;
void performCalculations() const override
Handle< QuantExt::PriceTermStructure > priceCurve_
Real blackPrice(Real volatility) const override
Real modelValue() const override
QuantLib::ext::shared_ptr< VanillaOption > option() const
QuantLib::ext::shared_ptr< VanillaOption > option_
const Handle< QuantExt::PriceTermStructure > & priceCurve() const
void addTimesTo(std::list< Time > &) const override
Term structure of prices.