Pricing Engines

Overview

functions to construct and use PricingEngine objects.

Function List

qlAnalyticCapFloorEngine ()
qlBachelierBlackFormula ()
qlBachelierBlackFormula2 ()
qlBachelierBlackFormulaImpliedVol ()
qlBachelierCapFloorEngine ()
qlBachelierCapFloorEngine2 ()
qlBinomialPricingEngine ()
qlBlackCalculator ()
qlBlackCalculator2 ()
qlBlackCalculatorAlpha ()
qlBlackCalculatorBeta ()
qlBlackCalculatorDelta ()
qlBlackCalculatorDeltaForward ()
qlBlackCalculatorDividendRho ()
qlBlackCalculatorElasticity ()
qlBlackCalculatorElasticityForward ()
qlBlackCalculatorGamma ()
qlBlackCalculatorGammaForward ()
qlBlackCalculatorItmAssetProbability ()
qlBlackCalculatorItmCashProbability ()
qlBlackCalculatorRho ()
qlBlackCalculatorStrikeSensitivity ()
qlBlackCalculatorTheta ()
qlBlackCalculatorThetaPerDay ()
qlBlackCalculatorValue ()
qlBlackCalculatorVega ()
qlBlackCapFloorEngine ()
qlBlackCapFloorEngine2 ()
qlBlackFormula ()
qlBlackFormula2 ()
qlBlackFormulaCashItmProbability ()
qlBlackFormulaCashItmProbability2 ()
qlBlackFormulaImpliedStdDev ()
qlBlackFormulaImpliedStdDev2 ()
qlBlackFormulaImpliedStdDevApproximation ()
qlBlackFormulaImpliedStdDevApproximation2 ()
qlBlackFormulaStdDevDerivative ()
qlBlackFormulaStdDevDerivative2 ()
qlBlackScholesCalculator ()
qlBlackScholesCalculator2 ()
qlBlackScholesCalculatorDelta ()
qlBlackScholesCalculatorElasticity ()
qlBlackScholesCalculatorGamma ()
qlBlackScholesCalculatorTheta ()
qlBlackScholesCalculatorThetaPerDay ()
qlBlackSwaptionEngine ()
qlBlackSwaptionEngine2 ()
qlBondEngine ()
qlDiscountingSwapEngine ()
qlJamshidianSwaptionEngine ()
qlModelG2SwaptionEngine ()
qlPricingEngine ()
qlTreeSwaptionEngine ()

Function Documentation

qlAnalyticCapFloorEngine

string returnValue
qlAnalyticCapFloorEngine(
string ObjectId
string HandleModel
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class AnalyticCapFloorEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
HandleModelaffine model (providing a discount bond option pricing formula) object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBachelierBlackFormula

double returnValue
qlBachelierBlackFormula(
string OptionType
double Strike
double AtmForwardValue
double StdDev
double Deflator
any Trigger)
Description:

Black style formula when forward is normal rather than log-normal, i.e. essentially the model of Bachelier.

Supported Platforms:

Excel

Parameters
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized ABSOLUTE volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Triggerdependency tracking trigger

qlBachelierBlackFormula2

double returnValue
qlBachelierBlackFormula2(
string Payoff
double AtmForwardValue
double StdDev
double Deflator
any Trigger)
Description:

Black style formula when forward is normal rather than log-normal, i.e. essentially the model of Bachelier. It uses a PlainVanillaPayoff object as input.

Supported Platforms:

Excel

Parameters
PayoffPlainVanillaPayoff object ID.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized ABSOLUTE volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Triggerdependency tracking trigger

qlBachelierBlackFormulaImpliedVol

double returnValue
qlBachelierBlackFormulaImpliedVol(
string OptionType
double Strike
double AtmForwardValue
double TimeToExpiry
double OptionPrice
double Deflator
any Trigger)
Description:

Normal implied volatility.

Supported Platforms:

Excel

Parameters
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
TimeToExpirytime to expiry as year fraction.
OptionPriceoption price.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Triggerdependency tracking trigger

qlBachelierCapFloorEngine

string returnValue
qlBachelierCapFloorEngine(
string ObjectId
string YieldCurve
string VolTS
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BachelierCapFloorEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting YieldTermStructure object ID.
VolTSOptionletVolatilityStructure object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBachelierCapFloorEngine2

string returnValue
qlBachelierCapFloorEngine2(
string ObjectId
string YieldCurve
string Vol
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BachelierCapFloorEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting YieldTermStructure object ID.
VolTerm (i.e. flat) volatility.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBinomialPricingEngine

string returnValue
qlBinomialPricingEngine(
string ObjectId
string EngineID
string ProcessID
long TimeSteps
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class PricingEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
EngineIDengine type.
ProcessIDGeneralizedBlackScholesProcess object ID.
TimeSteps#/time steps.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackCalculator

string returnValue
qlBlackCalculator(
string ObjectId
string OptionType
double Strike
double AtmForwardValue
double StdDev
double Deflator
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackCalculator and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackCalculator2

string returnValue
qlBlackCalculator2(
string ObjectId
string PayoffID
double AtmForwardValue
double StdDev
double Deflator
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackCalculator and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
PayoffIDStrikedTypePayoff ID.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackCalculatorAlpha

double returnValue
qlBlackCalculatorAlpha(
string ObjectId
any Trigger)
Description:

returns the alpha of the internal formulation of the given BlackCalculator object.

Supported Platforms:

Excel

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

qlBlackCalculatorBeta

double returnValue
qlBlackCalculatorBeta(
string ObjectId
any Trigger)
Description:

returns the beta of the internal formulation of the given BlackCalculator object.

Supported Platforms:

Excel

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

qlBlackCalculatorDelta

double returnValue
qlBlackCalculatorDelta(
string ObjectId
double Spot
any Trigger)
Description:

returns the sensitivity to change in the underlying spot price for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
Spotspot value.
Triggerdependency tracking trigger

qlBlackCalculatorDeltaForward

double returnValue
qlBlackCalculatorDeltaForward(
string ObjectId
any Trigger)
Description:

returns the sensitivity to change in the underlying forward price for the given BlackCalculator object.

Supported Platforms:

Excel

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

qlBlackCalculatorDividendRho

double returnValue
qlBlackCalculatorDividendRho(
string ObjectId
double TimeToMaturity
any Trigger)
Description:

returns the sensitivity to dividend/growth rate for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
TimeToMaturitytime to maturity in years.
Triggerdependency tracking trigger

qlBlackCalculatorElasticity

double returnValue
qlBlackCalculatorElasticity(
string ObjectId
double Spot
any Trigger)
Description:

returns the sensitivity in percent to a percent change in the underlying spot price for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
Spotspot value.
Triggerdependency tracking trigger

qlBlackCalculatorElasticityForward

double returnValue
qlBlackCalculatorElasticityForward(
string ObjectId
any Trigger)
Description:

returns the sensitivity in percent to a percent change in the underlying forward price for the given BlackCalculator object.

Supported Platforms:

Excel

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

qlBlackCalculatorGamma

double returnValue
qlBlackCalculatorGamma(
string ObjectId
double Spot
any Trigger)
Description:

returns the second order derivative with respect to change in the underlying spot price for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
Spotspot value.
Triggerdependency tracking trigger

qlBlackCalculatorGammaForward

double returnValue
qlBlackCalculatorGammaForward(
string ObjectId
any Trigger)
Description:

returns the second order derivative with respect to change in the underlying forward price for the given BlackCalculator object.

Supported Platforms:

Excel

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

qlBlackCalculatorItmAssetProbability

double returnValue
qlBlackCalculatorItmAssetProbability(
string ObjectId
any Trigger)
Description:

returns the probability of being in the money in the asset martingale measure for the given BlackCalculator object. It is a risk-neutral probability, not the real world probability.

Supported Platforms:

Excel

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

qlBlackCalculatorItmCashProbability

double returnValue
qlBlackCalculatorItmCashProbability(
string ObjectId
any Trigger)
Description:

returns the probability of being in the money in the bond martingale measure for the given BlackCalculator object. It is a risk-neutral probability, not the real world probability.

Supported Platforms:

Excel

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

qlBlackCalculatorRho

double returnValue
qlBlackCalculatorRho(
string ObjectId
double TimeToMaturity
any Trigger)
Description:

returns the sensitivity to discounting rate for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
TimeToMaturitytime to maturity in years.
Triggerdependency tracking trigger

qlBlackCalculatorStrikeSensitivity

double returnValue
qlBlackCalculatorStrikeSensitivity(
string ObjectId
any Trigger)
Description:

returns the sensitivity to strike for the given BlackCalculator object.

Supported Platforms:

Excel

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

qlBlackCalculatorTheta

double returnValue
qlBlackCalculatorTheta(
string ObjectId
double Spot
double TimeToMaturity
any Trigger)
Description:

returns the sensitivity to time to maturity for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
Spotspot value.
TimeToMaturitytime to maturity in years.
Triggerdependency tracking trigger

qlBlackCalculatorThetaPerDay

double returnValue
qlBlackCalculatorThetaPerDay(
string ObjectId
double Spot
double TimeToMaturity
any Trigger)
Description:

returns the sensitivity to time to maturity per day, assuming 365 days per year, for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
Spotspot value.
TimeToMaturitytime to maturity in years.
Triggerdependency tracking trigger

qlBlackCalculatorValue

double returnValue
qlBlackCalculatorValue(
string ObjectId
any Trigger)
Description:

returns the option value for the given BlackCalculator object.

Supported Platforms:

Excel

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

qlBlackCalculatorVega

double returnValue
qlBlackCalculatorVega(
string ObjectId
double TimeToMaturity
any Trigger)
Description:

returns the sensitivity to volatility for the given BlackCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackCalculator object
TimeToMaturitytime to maturity in years.
Triggerdependency tracking trigger

qlBlackCapFloorEngine

string returnValue
qlBlackCapFloorEngine(
string ObjectId
string YieldCurve
string VolTS
double Displacement
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackCapFloorEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting YieldTermStructure object ID.
VolTSOptionletVolatilityStructure object ID.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackCapFloorEngine2

string returnValue
qlBlackCapFloorEngine2(
string ObjectId
string YieldCurve
string Vol
double Displacement
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackCapFloorEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting YieldTermStructure object ID.
VolTerm (i.e. flat) volatility.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackFormula

double returnValue
qlBlackFormula(
string OptionType
double Strike
double AtmForwardValue
double StdDev
double Deflator
double Displacement
any Trigger)
Description:

Black 1976 formula for option pricing, using displacement.

Supported Platforms:

Excel

Parameters
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackFormula2

double returnValue
qlBlackFormula2(
string Payoff
double AtmForwardValue
double StdDev
double Deflator
double Displacement
any Trigger)
Description:

Black 1976 formula for option pricing with displacement. It uses a PlainVanillaPayoff object as input.

Supported Platforms:

Excel

Parameters
PayoffPlainVanillaPayoff object ID.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackFormulaCashItmProbability

double returnValue
qlBlackFormulaCashItmProbability(
string OptionType
double Strike
double AtmForwardValue
double StdDev
double Displacement
any Trigger)
Description:

Black 1976 probability of being in the money (in the bond martingale measure), i.e. N(d2). It is a risk-neutral probability, not the real world one.

Supported Platforms:

Excel

Parameters
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackFormulaCashItmProbability2

double returnValue
qlBlackFormulaCashItmProbability2(
string Payoff
double AtmForwardValue
double StdDev
double Displacement
any Trigger)
Description:

Black 1976 probability of being in the money (in the bond martingale measure), i.e. N(d2). It is a risk-neutral probability, not the real world one. It uses a PlainVanillaPayoff object as input.

Supported Platforms:

Excel

Parameters
PayoffPlainVanillaPayoff object ID.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackFormulaImpliedStdDev

double returnValue
qlBlackFormulaImpliedStdDev(
string OptionType
double Strike
double AtmForwardValue
double OptionPrice
double Deflator
double Displacement
double Guess
double Accuracy
long MaxIter
any Trigger)
Description:

Standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula with displacement.

Supported Platforms:

Excel

Parameters
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
OptionPriceoption price.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Guessstandard deviation guess. Default value = QuantLib::Null<QuantLib::Real>().
Accuracysolver accuracy. Default value = 1.0e-6.
MaxItersolver max iterations. Default value = 100.
Triggerdependency tracking trigger

qlBlackFormulaImpliedStdDev2

double returnValue
qlBlackFormulaImpliedStdDev2(
string PayoffID
double AtmForwardValue
double OptionPrice
double Deflator
double Displacement
double Guess
double Accuracy
long MaxIter
any Trigger)
Description:

Standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula. It uses a PlainVanillaPayoff object as input.

Supported Platforms:

Excel

Parameters
PayoffIDPlainVanillaPayoff object ID.
AtmForwardValueunderlying asset at-the-money forward value.
OptionPriceoption price.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Guessstandard deviation guess. Default value = QuantLib::Null<QuantLib::Real>().
Accuracystandard deviation accuracy. Default value = 1.0e-6.
MaxItersolver max iterations. Default value = 100.
Triggerdependency tracking trigger

qlBlackFormulaImpliedStdDevApproximation

double returnValue
qlBlackFormulaImpliedStdDevApproximation(
string OptionType
double Strike
double AtmForwardValue
double OptionPrice
double Deflator
double Displacement
any Trigger)
Description:

Approximation for the standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula.

Supported Platforms:

Excel

Parameters
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
OptionPriceoption price.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackFormulaImpliedStdDevApproximation2

double returnValue
qlBlackFormulaImpliedStdDevApproximation2(
string Payoff
double AtmForwardValue
double OptionPrice
double Deflator
double Displacement
any Trigger)
Description:

Approximation for the standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula. It uses a PlainVanillaPayoff object as input.

Supported Platforms:

Excel

Parameters
PayoffPlainVanillaPayoff object ID.
AtmForwardValueunderlying asset at-the-money forward value.
OptionPriceoption price.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackFormulaStdDevDerivative

double returnValue
qlBlackFormulaStdDevDerivative(
double Strike
double AtmForwardValue
double StdDev
double Deflator
double Displacement
any Trigger)
Description:

Black 1976 formula for the derivative with respect to the standard deviation (annualized percentage volatility times the square root of time to option expiry), with displacement.

Supported Platforms:

Excel

Parameters
Strikeoption strike.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackFormulaStdDevDerivative2

double returnValue
qlBlackFormulaStdDevDerivative2(
string PayoffID
double AtmForwardValue
double StdDev
double Deflator
double Displacement
any Trigger)
Description:

Black 1976 formula for the derivative with respect to the standard deviation (annualized percentage volatility times the square root of time to option expiry). It uses a PlainVanillaPayoff object as input.

Supported Platforms:

Excel

Parameters
PayoffIDPlainVanillaPayoff object ID.
AtmForwardValueunderlying asset at-the-money forward value.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlBlackScholesCalculator

string returnValue
qlBlackScholesCalculator(
string ObjectId
string OptionType
double Strike
double Spot
double Growth
double StdDev
double Deflator
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackScholesCalculator and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
OptionTypeoption type (i.e. Call or Put).
Strikeoption strike.
Spotspot value.
Growthgrowth discount factor. Default value = 1.0.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackScholesCalculator2

string returnValue
qlBlackScholesCalculator2(
string ObjectId
string PayoffID
double Spot
double Growth
double StdDev
double Deflator
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackScholesCalculator and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
PayoffIDStrikedTypePayoff ID.
Spotspot value.
Growthgrowth discount factor. Default value = 1.0.
StdDevstandard deviation, i.e. annualized percentage volatility times the square root of time to option expiry.
DeflatorDeflator (usually the discount factor, or the annuity, etc.). Default value = 1.0.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackScholesCalculatorDelta

double returnValue
qlBlackScholesCalculatorDelta(
string ObjectId
any Trigger)
Description:

returns the sensitivity to change in the underlying spot price for the given BlackScholesCalculator object.

Supported Platforms:

Excel

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

qlBlackScholesCalculatorElasticity

double returnValue
qlBlackScholesCalculatorElasticity(
string ObjectId
any Trigger)
Description:

returns the sensitivity in percent to a percent change in the underlying spot price for the given BlackScholesCalculator object.

Supported Platforms:

Excel

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

qlBlackScholesCalculatorGamma

double returnValue
qlBlackScholesCalculatorGamma(
string ObjectId
any Trigger)
Description:

returns the second order derivative with respect to change in the underlying spot price for the given BlackScholesCalculator object.

Supported Platforms:

Excel

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

qlBlackScholesCalculatorTheta

double returnValue
qlBlackScholesCalculatorTheta(
string ObjectId
double TimeToMaturity
any Trigger)
Description:

returns the sensitivity to time to maturity for the given BlackScholesCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackScholesCalculator object
TimeToMaturitytime to maturity in years.
Triggerdependency tracking trigger

qlBlackScholesCalculatorThetaPerDay

double returnValue
qlBlackScholesCalculatorThetaPerDay(
string ObjectId
double TimeToMaturity
any Trigger)
Description:

returns the sensitivity to time to maturity per day, assuming 365 days per year, for the given BlackScholesCalculator object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::BlackScholesCalculator object
TimeToMaturitytime to maturity in years.
Triggerdependency tracking trigger

qlBlackSwaptionEngine

string returnValue
qlBlackSwaptionEngine(
string ObjectId
string YieldCurve
string VolTS
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackSwaptionEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting yield term structure object ID.
VolTSSwaptionVolatilityStructure object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBlackSwaptionEngine2

string returnValue
qlBlackSwaptionEngine2(
string ObjectId
string YieldCurve
string Vol
double Displacement
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BlackSwaptionEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting yield term structure object ID.
Volswaption Black volatility.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBondEngine

string returnValue
qlBondEngine(
string ObjectId
string YieldCurve
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BondEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting yield term structure object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlDiscountingSwapEngine

string returnValue
qlDiscountingSwapEngine(
string ObjectId
string YieldCurve
bool IncludeSettlDate
long SettlementDate
long NpvDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class DiscountingSwapEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
YieldCurvediscounting yield term structure object ID.
IncludeSettlDateTRUE if cashflows paid at the settlement date must be taken into account. Default value = true.
SettlementDatecashflows before this date are not taken into account. If missing it is assumed equal to the discounting yield term structure's reference date. Default value = QuantLib::Date().
NpvDateall cashflows are discounted to this date. If missing it is assumed equal to the discounting yield term structure's reference date. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlJamshidianSwaptionEngine

string returnValue
qlJamshidianSwaptionEngine(
string ObjectId
string Model
string YieldCurve
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class JamshidianSwaptionEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
ModelModel object ID.
YieldCurveyield term structure object ID. Default value = .
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlModelG2SwaptionEngine

string returnValue
qlModelG2SwaptionEngine(
string ObjectId
string Model
double Range
long Intervals
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class G2SwaptionEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
ModelG2 Model object ID.
RangeRange.
IntervalsIntervals.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlPricingEngine

string returnValue
qlPricingEngine(
string ObjectId
string EngineID
string ProcessID
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class PricingEngine and return its id

Supported Platforms:

Excel, C, Calc, Guile, C++

Parameters
ObjectIdid of object to be created
EngineIDengine type.
ProcessIDGeneralizedBlackScholesProcess object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlTreeSwaptionEngine

string returnValue
qlTreeSwaptionEngine(
string ObjectId
string Model
long Nsteps
string YieldCurve
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class TreeSwaptionEngine and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
ModelModel object ID.
NstepsNumber of time steps.
YieldCurveyield term structure object ID. Default value = .
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag