31 Real equityPrice =
equityCurve_->fixing(endDate,
false,
false);
42 dividends -= (
equityCurve_->fixing(startDate,
false,
true) -
46 dividends +=
equityCurve_->dividendsBetweenDates(startDate, endDate);
67 fxIndex_ = QuantLib::ext::dynamic_pointer_cast<FxIndex>(coupon.
fxIndex());
const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > & equityCurve() const
equity reference rate curve
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex() const
fx index curve
Real dividendFactor() const
are dividends scaled (e.g. to account for tax)
Date fixingEndDate() const
The date at which performance is measured.
bool isTotalReturn() const
total return or price return?
InterestRate fixedRate() const
Real marginFactor() const
Date fixingStartDate() const
The date at which the starting equity price is fixed.
Real initialPrice() const
initial price
QuantLib::ext::shared_ptr< FxIndex > fxIndex_
virtual void initialize(const EquityMarginCoupon &coupon)
virtual Rate rate() const
QuantLib::ext::shared_ptr< EquityIndex2 > equityCurve_
const EquityMarginCoupon * coupon_
Pricer for equity margin coupons.