Future Option Helper.
More...
#include <qle/models/futureoptionhelper.hpp>
Future Option Helper.
Definition at line 37 of file futureoptionhelper.hpp.
◆ FutureOptionHelper() [1/2]
FutureOptionHelper |
( |
const Period & |
maturity, |
|
|
const Calendar & |
calendar, |
|
|
const Real |
strike, |
|
|
const Handle< QuantExt::PriceTermStructure > |
priceCurve, |
|
|
const Handle< Quote > |
volatility, |
|
|
BlackCalibrationHelper::CalibrationErrorType |
errorType = BlackCalibrationHelper::RelativePriceError |
|
) |
| |
Definition at line 28 of file futureoptionhelper.cpp.
35}
Handle< QuantExt::PriceTermStructure > priceCurve_
const Handle< QuantExt::PriceTermStructure > & priceCurve() const
◆ FutureOptionHelper() [2/2]
FutureOptionHelper |
( |
const Date & |
exerciseDate, |
|
|
const Real |
strike, |
|
|
const Handle< QuantExt::PriceTermStructure > |
priceCurve, |
|
|
const Handle< Quote > |
volatility, |
|
|
BlackCalibrationHelper::CalibrationErrorType |
errorType = BlackCalibrationHelper::RelativePriceError |
|
) |
| |
◆ addTimesTo()
void addTimesTo |
( |
std::list< Time > & |
| ) |
const |
|
override |
◆ performCalculations()
void performCalculations |
( |
| ) |
const |
|
override |
Definition at line 46 of file futureoptionhelper.cpp.
46 {
55 QuantLib::ext::shared_ptr<StrikedTypePayoff> payoff(
new PlainVanillaPayoff(
type_,
effStrike_));
56 QuantLib::ext::shared_ptr<Exercise> exercise = QuantLib::ext::make_shared<EuropeanExercise>(
exerciseDate_);
57 option_ = QuantLib::ext::shared_ptr<VanillaOption>(
new VanillaOption(payoff, exercise));
58 BlackCalibrationHelper::performCalculations();
59}
QuantLib::ext::shared_ptr< VanillaOption > option_
◆ modelValue()
Real modelValue |
( |
| ) |
const |
|
override |
Definition at line 61 of file futureoptionhelper.cpp.
61 {
62 calculate();
65}
QuantLib::ext::shared_ptr< PricingEngine > engine_
◆ blackPrice()
Real blackPrice |
( |
Real |
volatility | ) |
const |
|
override |
◆ option()
QuantLib::ext::shared_ptr< VanillaOption > option |
( |
| ) |
const |
◆ strike()
◆ priceCurve()
◆ priceCurve_
◆ hasMaturity_
◆ maturity_
◆ exerciseDate_
◆ calendar_
◆ strike_
◆ tau_
◆ atm_
◆ type_
◆ option_
QuantLib::ext::shared_ptr<VanillaOption> option_ |
|
mutableprivate |
◆ effStrike_