24#ifndef quantext_off_peak_power_index_hpp
25#define quantext_off_peak_power_index_hpp
55 const QuantLib::ext::shared_ptr<CommodityFuturesIndex>&
offPeakIndex,
56 const QuantLib::ext::shared_ptr<CommodityFuturesIndex>&
peakIndex,
59 const Handle<QuantExt::PriceTermStructure>&
priceCurve = Handle<QuantExt::PriceTermStructure>());
63 const QuantLib::ext::shared_ptr<CommodityFuturesIndex>&
offPeakIndex()
const;
64 const QuantLib::ext::shared_ptr<CommodityFuturesIndex>&
peakIndex()
const;
70 QuantLib::ext::shared_ptr<CommodityIndex>
clone(
const QuantLib::Date&
expiryDate,
71 const boost::optional<QuantLib::Handle<PriceTermStructure>>& ts = boost::none)
const override;
76 Real
pastFixing(
const Date& fixingDate)
const override;
81 QuantLib::ext::shared_ptr<CommodityFuturesIndex>
peakIndex_;
const QuantLib::Date & expiryDate() const
const Handle< QuantExt::PriceTermStructure > & priceCurve() const
std::string underlyingName() const
const QuantLib::ext::shared_ptr< CommodityFuturesIndex > & offPeakIndex() const
QuantLib::Calendar peakCalendar_
const QuantLib::ext::shared_ptr< CommodityFuturesIndex > & peakIndex() const
QuantLib::ext::shared_ptr< CommodityFuturesIndex > peakIndex_
QuantLib::ext::shared_ptr< CommodityFuturesIndex > offPeakIndex_
QuantLib::ext::shared_ptr< CommodityIndex > clone(const QuantLib::Date &expiryDate, const boost::optional< QuantLib::Handle< PriceTermStructure > > &ts=boost::none) const override
Implement the base clone.
QuantLib::Real offPeakHours_
const QuantLib::Calendar & peakCalendar() const
Real pastFixing(const Date &fixingDate) const override
returns a past fixing at the given date
QuantLib::Real offPeakHours() const
commodity index class for holding commodity spot and futures price histories and forwarding.