24 const Date& maturityDate,
const Calendar& calendar,
bool addPastDividends)
25 :
QuantLib::VarianceSwap(position, strike, notional, startDate, maturityDate), calendar_(calendar),
26 addPastDividends_(addPastDividends) {}
29 QuantLib::VarianceSwap::setupArguments(args);
31 QL_REQUIRE(
arguments != 0,
"wrong argument type");
Arguments for forward fair-variance calculation
VarianceSwap2(Position::Type position, Real strike, Real notional, const Date &startDate, const Date &maturityDate, const Calendar &calendar, bool addPastDividends)
void setupArguments(PricingEngine::arguments *args) const override