27 const Date& resetDate,
28 const ext::shared_ptr<StrikedTypePayoff>&
payoff,
29 const ext::shared_ptr<Exercise>& exercise)
35 "exchange rate vega calculation failed");
42 "foreign interest rate rho calculation failed");
49 "quanto correlation sensitivity calculation failed");
62 QL_ENSURE(quantoResults !=
nullptr,
"no quanto results returned from pricing engine");
63 qrho_ = quantoResults->qrho;
64 qvega_ = quantoResults->qvega;
Forward version of a vanilla option
void fetchResults(const PricingEngine::results *) const override
void calculate() const override
virtual void setupExpired() const
template class providing a null value for a given type.
QuantoForwardVanillaOption(Real moneyness, const Date &resetDate, const ext::shared_ptr< StrikedTypePayoff > &, const ext::shared_ptr< Exercise > &)
void setupExpired() const override
void fetchResults(const PricingEngine::results *) const override
Results from quanto option calculation
#define QL_ENSURE(condition, message)
throw an error if the given post-condition is not verified
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
ext::shared_ptr< QuantLib::Payoff > payoff
ext::shared_ptr< YieldTermStructure > r
Quanto version of a forward vanilla option.