Smile Section Structures

Overview

functions to construct and use SmileSection objects.

Function List

qlFlatSmileSection ()
qlInterpolatedSmileSection ()
qlSabrInterpolatedSmileSection ()
qlSabrInterpolatedSmileSection1 ()
qlSabrInterpolatedSmileSectionAlpha ()
qlSabrInterpolatedSmileSectionBeta ()
qlSabrInterpolatedSmileSectionEndCriteria ()
qlSabrInterpolatedSmileSectionError ()
qlSabrInterpolatedSmileSectionMaxError ()
qlSabrInterpolatedSmileSectionNu ()
qlSabrInterpolatedSmileSectionRho ()
qlSabrSmileSection ()
qlSmileSectionAtmLevel ()
qlSmileSectionDayCounter ()
qlSmileSectionExerciseDate ()
qlSmileSectionFromSabrVolSurface ()
qlSmileSectionVariance ()
qlSmileSectionVolatility ()

Function Documentation

qlFlatSmileSection

string returnValue
qlFlatSmileSection(
string ObjectId
long OptionDate
double Volatility
string DayCounter
long RefDate
double AtmValue
string VolatilityType
double Displacement
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class FlatSmileSection and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
OptionDatesmile's expiry as date.
Volatilityvolatilities.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
RefDateref date.
AtmValueCurrent value of the underlying.
VolatilityTypeVolatility type: Normal or ShiftedLognormal. Default value = ShiftedLognormal.
DisplacementShift for the lognormal model. Default value = 0.00.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlInterpolatedSmileSection

string returnValue
qlInterpolatedSmileSection(
string ObjectId
long OptionDate
vector<double> Strikes
vector<string> StdDevs
string AtmLevel
string DayCounter
string VolatilityType
double Displacement
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class InterpolatedSmileSection and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
OptionDatesmile's expiry as date.
Strikesstrikes.
StdDevsstandard deviations (i.e. volatilities times square root of time to option expiry).
AtmLevelCurrent value of the underlying.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
VolatilityTypeVolatility type: Normal or ShiftedLognormal. Default value = ShiftedLognormal.
DisplacementShift for the lognormal model. Default value = 0.00.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSabrInterpolatedSmileSection

string returnValue
qlSabrInterpolatedSmileSection(
string ObjectId
long OptionDate
double ForwardRate
vector<double> Strike
bool FloatingStrike
double AtmVolatility
vector<double> VolatilitySpreads
double Alpha
double Beta
double Nu
double Rho
bool AlphaIsFixed
bool BetaIsFixed
bool NuIsFixed
bool RhoIsFixed
bool VegaWeighted
string EndCriteria
string Method
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class SabrInterpolatedSmileSection and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
OptionDatesmile's expiry as Date.
ForwardRateAtm forward rate.
Strikestrikes.
FloatingStrikeStrikes are floating or fixed.
AtmVolatilityatm volatility.
VolatilitySpreadsvolatilities spread at option expiries.
Alphaalpha (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Betabeta (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Nunu (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Rhorho (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
AlphaIsFixedTRUE if the alpha value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
BetaIsFixedTRUE if the beta value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
NuIsFixedTRUE if the nu value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
RhoIsFixedTRUE if the rho value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
VegaWeightedTRUE if the interpolation is weighted using options Vega. Default value = false.
EndCriteriaEndCriteria object ID. Default value = .
MethodOptimizationMethod object ID. Default value = .
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSabrInterpolatedSmileSection1

string returnValue
qlSabrInterpolatedSmileSection1(
string ObjectId
long OptionDate
string ForwardRate
vector<double> Strike
bool FloatingStrike
string AtmVolatility
vector<string> VolatilitySpreads
double Alpha
double Beta
double Nu
double Rho
bool AlphaIsFixed
bool BetaIsFixed
bool NuIsFixed
bool RhoIsFixed
bool VegaWeighted
string EndCriteria
string Method
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class SabrInterpolatedSmileSection and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
OptionDatesmile's expiry as Date.
ForwardRateAtm forward rate quote.
Strikestrikes.
FloatingStrikeStrikes are floating or fixed.
AtmVolatilityatm volatility quote.
VolatilitySpreadsvolatilities spread quotes at option expiries.
Alphaalpha (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Betabeta (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Nunu (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Rhorho (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
AlphaIsFixedTRUE if the alpha value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
BetaIsFixedTRUE if the beta value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
NuIsFixedTRUE if the nu value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
RhoIsFixedTRUE if the rho value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
VegaWeightedTRUE if the interpolation is weighted using options Vega. Default value = false.
EndCriteriaEndCriteria object ID. Default value = .
MethodOptimizationMethod object ID. Default value = .
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSabrInterpolatedSmileSectionAlpha

double returnValue
qlSabrInterpolatedSmileSectionAlpha(
string ObjectId
any Trigger)
Description:

Returns the alpha of the SABR fit for the given SabrInterpolatedSmileSection object.

Supported Platforms:

Excel

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

qlSabrInterpolatedSmileSectionBeta

double returnValue
qlSabrInterpolatedSmileSectionBeta(
string ObjectId
any Trigger)
Description:

Returns the beta of the SABR fit.

Supported Platforms:

Excel

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

qlSabrInterpolatedSmileSectionEndCriteria

string returnValue
qlSabrInterpolatedSmileSectionEndCriteria(
string ObjectId
any Trigger)
Description:

Returns the optimization end criteria of the SABR fit for the given SabrInterpolatedSmileSection object.

Supported Platforms:

Excel

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

qlSabrInterpolatedSmileSectionError

double returnValue
qlSabrInterpolatedSmileSectionError(
string ObjectId
any Trigger)
Description:

Returns the error of the SABR fit for the given SabrInterpolatedSmileSection object.

Supported Platforms:

Excel

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

qlSabrInterpolatedSmileSectionMaxError

double returnValue
qlSabrInterpolatedSmileSectionMaxError(
string ObjectId
any Trigger)
Description:

Returns the max error of the SABR fit for the given SabrInterpolatedSmileSection object.

Supported Platforms:

Excel

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

qlSabrInterpolatedSmileSectionNu

double returnValue
qlSabrInterpolatedSmileSectionNu(
string ObjectId
any Trigger)
Description:

Returns the nu of the SABR fit for the given SabrInterpolatedSmileSection object.

Supported Platforms:

Excel

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

qlSabrInterpolatedSmileSectionRho

double returnValue
qlSabrInterpolatedSmileSectionRho(
string ObjectId
any Trigger)
Description:

Returns the rho of the SABR fit for the given SabrInterpolatedSmileSection object.

Supported Platforms:

Excel

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

qlSabrSmileSection

string returnValue
qlSabrSmileSection(
string ObjectId
double OptionTime
vector<double> Strikes
vector<string> StdDevs
string Forward
double Alpha
double Beta
double Nu
double Rho
bool AlphaIsFixed
bool BetaIsFixed
bool NuIsFixed
bool RhoIsFixed
bool VegaWeighted
string EndCriteria
string Method
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class SabrSmileSection and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
OptionTimesmile's expiry as time.
Strikesstrikes.
StdDevsstandard deviations (i.e. volatilities times square root of time to option expiry).
Forwardatm rate.
Alphaalpha (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Betabeta (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Nunu (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
Rhorho (fixed value or guess). Default value = QuantLib::Null<QuantLib::Real>().
AlphaIsFixedTRUE if the alpha value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
BetaIsFixedTRUE if the beta value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
NuIsFixedTRUE if the nu value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
RhoIsFixedTRUE if the rho value provided is to be kept fixed, FALSE if it is just a guess. Default value = false.
VegaWeightedTRUE if the interpolation is weighted using options Vega. Default value = false.
EndCriteriaEndCriteria object ID. Default value = .
MethodOptimization Method. Default value = .
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSmileSectionAtmLevel

double returnValue
qlSmileSectionAtmLevel(
string ObjectId
any Trigger)
Description:

Returns the current value of the SmileSection underlying.

Supported Platforms:

Excel

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

qlSmileSectionDayCounter

string returnValue
qlSmileSectionDayCounter(
string ObjectId
any Trigger)
Description:

Returns the DayCounter of the SmileSection object.

Supported Platforms:

Excel

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

qlSmileSectionExerciseDate

long returnValue
qlSmileSectionExerciseDate(
string ObjectId
any Trigger)
Description:

Returns the exercise date of the SmileSection object.

Supported Platforms:

Excel

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

qlSmileSectionFromSabrVolSurface

string returnValue
qlSmileSectionFromSabrVolSurface(
string ObjectId
string SabrVolSurface
double OptionTime
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class SmileSectionFromSabrVolSurface and return its id

Supported Platforms:

Excel

Parameters
ObjectIdid of object to be created
SabrVolSurfaceSabrVolSurface object ID.
OptionTimesmile's expiry as date.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSmileSectionVariance

double returnValue
qlSmileSectionVariance(
string ObjectId
double Strike
any Trigger)
Description:

Returns the variance at a given strike from the SmileSection object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::SmileSection object
Strikestrike. Default value = QuantLib::Null<QuantLib::Real>().
Triggerdependency tracking trigger

qlSmileSectionVolatility

double returnValue
qlSmileSectionVolatility(
string ObjectId
double Strike
any Trigger)
Description:

Returns the volatility at a given strike from the SmileSection object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::SmileSection object
Strikestrike. Default value = QuantLib::Null<QuantLib::Real>().
Triggerdependency tracking trigger