CalibrationHelpers

Overview

functions to construct and use Calibration Helpers objects.

Function List

qlCalibrationHelperImpliedVolatility ()
qlCalibrationHelperSetPricingEngine ()
qlModelG2Calibrate ()
qlOneFactorAffineModelCalibrate ()
qlSwaptionHelper ()
qlSwaptionHelperModelValue ()

Function Documentation

qlCalibrationHelperImpliedVolatility

double returnValue
qlCalibrationHelperImpliedVolatility(
string ObjectId
double TargetValue
double Accuracy
long MaxEvaluations
double MinVol
double MaxVol
any Trigger)
Description:

Set the priging engine for the given SwaptionHelper object.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::BlackCalibrationHelper object
TargetValuetarget value.
Accuracyaccuracy.
MaxEvaluationsmax evaluations.
MinVolmin vol.
MaxVolmax vol.
Triggerdependency tracking trigger

qlCalibrationHelperSetPricingEngine

void returnValue
qlCalibrationHelperSetPricingEngine(
string ObjectId
string PricingEngine
any Trigger)
Description:

Set the priging engine for the given SwaptionHelper object.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::BlackCalibrationHelper object
PricingEnginePricingEngine object ID.
Triggerdependency tracking trigger

qlModelG2Calibrate

void returnValue
qlModelG2Calibrate(
string ObjectId
vector<string> CalibrationHelpers
string Method
string EndCriteria
string Constraint
vector<double> Weights
vector<bool> FixedCoeff
any Trigger)
Description:

calibrate a model.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::G2 object
CalibrationHelpersvector of calibration-helpers.
MethodOptimizationMethod object ID.
EndCriteriaEndCriteria object ID.
ConstraintConstraint.
Weightsweights. Default value = .
FixedCoeffTRUE if the i-th coefficient must be kept fixed in later calibrations, FALSE otherwise. Default value = .
Triggerdependency tracking trigger

qlOneFactorAffineModelCalibrate

void returnValue
qlOneFactorAffineModelCalibrate(
string ObjectId
vector<string> CalibrationHelpers
string Method
string EndCriteria
string Constraint
vector<double> Weights
vector<bool> FixedCoeff
any Trigger)
Description:

calibrate a model.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::OneFactorAffineModel object
CalibrationHelpersvector of calibration-helpers.
MethodOptimizationMethod object ID.
EndCriteriaEndCriteria object ID.
ConstraintConstraint.
Weightsweights. Default value = .
FixedCoeffTRUE if the i-th coefficient must be kept fixed in later calibrations, FALSE otherwise. Default value = .
Triggerdependency tracking trigger

qlSwaptionHelper

string returnValue
qlSwaptionHelper(
string ObjectId
string OptionTenor
string Length
string Volatility
string IborIndex
string FixedLegTenor
string FixedLegDayCounter
string FloatingLegDayCounter
string YieldCurve
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class SwaptionHelper and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
OptionTenoroption tenor as Period (e.g. '5Y').
Lengthoption length.
Volatilityvolatility quote.
IborIndexIborIndex object ID.
FixedLegTenorfixed leg tenor.
FixedLegDayCounterfixed leg day-counter.
FloatingLegDayCounterfloating leg day-counter.
YieldCurveYieldTermStructure object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSwaptionHelperModelValue

double returnValue
qlSwaptionHelperModelValue(
string ObjectId
any Trigger)
Description:

Set the priging engine for the given SwaptionHelper object.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::SwaptionHelper object
Triggerdependency tracking trigger