24#ifndef quantext_calibrationhelper_fxeqoption_hpp
25#define quantext_calibrationhelper_fxeqoption_hpp
27#include <ql/instruments/vanillaoption.hpp>
28#include <ql/models/calibrationhelper.hpp>
44 const Period& maturity,
const Calendar& calendar,
const Real
strike,
const Handle<Quote> spot,
45 const Handle<Quote> volatility,
const Handle<YieldTermStructure>& domesticYield,
46 const Handle<YieldTermStructure>& foreignYield,
47 BlackCalibrationHelper::CalibrationErrorType errorType = BlackCalibrationHelper::RelativePriceError);
49 const Date& exerciseDate,
const Real
strike,
const Handle<Quote> spot,
const Handle<Quote> volatility,
50 const Handle<YieldTermStructure>& domesticYield,
const Handle<YieldTermStructure>& foreignYield,
51 BlackCalibrationHelper::CalibrationErrorType errorType = BlackCalibrationHelper::RelativePriceError);
55 Real
blackPrice(Real volatility)
const override;
56 QuantLib::ext::shared_ptr<VanillaOption>
option()
const {
return option_; }
74 mutable QuantLib::ext::shared_ptr<VanillaOption>
option_;
const Handle< Quote > spot_
void performCalculations() const override
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< YieldTermStructure > foreignYield_
Handle< YieldTermStructure > termStructure_
void addTimesTo(std::list< Time > &) const override