Schedules

Overview

functions to construct and use Schedule objects.

Function List

qlSchedule ()
qlScheduleBDC ()
qlScheduleCalendar ()
qlScheduleDates ()
qlScheduleEmpty ()
qlScheduleEndDate ()
qlScheduleEndOfMonth ()
qlScheduleFromDateVector ()
qlScheduleFullInterfaceFromDateVector ()
qlScheduleIsRegular ()
qlScheduleNextDate ()
qlSchedulePreviousDate ()
qlScheduleRule ()
qlScheduleSize ()
qlScheduleStartDate ()
qlScheduleTenor ()
qlScheduleTerminationDateBDC ()
qlScheduleTruncated ()

Function Documentation

qlSchedule

string returnValue
qlSchedule(
string ObjectId
long EffectiveDate
long TerminationDate
string Tenor
string Calendar
string Convention
string TermDateConv
string GenRule
bool EndOfMonth
long FirstDate
long NextToLastDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Schedule and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
EffectiveDateeffective date. Default value = QuantLib::Date().
TerminationDatetermination date.
Tenortenor (e.g. 2D for two days , 3W for three weeks, 6M for six months, 1Y for one year).
Calendarholiday calendar (e.g. TARGET). Default value = NullCalendar.
Conventionaccrual dates business day convention. Default value = Unadjusted.
TermDateConvtermination date business day convention. Default value = Unadjusted.
GenRuleDate generation rule (Backward, Forward, ThirdWednesday, Twentieth, TwentiethIMM, Zero). Default value = Backward.
EndOfMonthend of month convention. Ignored for Tenor below 1M. Default value = false.
FirstDatestub date, if there is an irregular starting period. Default value = QuantLib::Date().
NextToLastDatestub date, if there an irregular final period. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlScheduleBDC

string returnValue
qlScheduleBDC(
string ObjectId
any Trigger)
Description:

returns the business day convention used to calculate the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleCalendar

string returnValue
qlScheduleCalendar(
string ObjectId
any Trigger)
Description:

returns the Calendar used to calculate the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleDates

vector<long> returnValue
qlScheduleDates(
string ObjectId
any Trigger)
Description:

returns the dates for the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleEmpty

bool returnValue
qlScheduleEmpty(
string ObjectId
any Trigger)
Description:

returns TRUE if the given Schedule object is empty.

Supported Platforms:

Excel, Calc

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

qlScheduleEndDate

long returnValue
qlScheduleEndDate(
string ObjectId
any Trigger)
Description:

returns the end date of the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleEndOfMonth

bool returnValue
qlScheduleEndOfMonth(
string ObjectId
any Trigger)
Description:

returns TRUE if end-of-month convention has been used to calculate the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleFromDateVector

string returnValue
qlScheduleFromDateVector(
string ObjectId
vector<long> EffectiveDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Schedule and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
EffectiveDatedate vector. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlScheduleFullInterfaceFromDateVector

string returnValue
qlScheduleFullInterfaceFromDateVector(
string ObjectId
vector<long> Dates
vector<bool> IsRegular
string Tenor
string Calendar
string Convention
string TermDateConv
string GenRule
bool EndOfMonth
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Schedule and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
Datesdate vector. Default value = QuantLib::Date().
IsRegularboolean vector. Default value = true.
Tenortenor (e.g. 2D for two days , 3W for three weeks, 6M for six months, 1Y for one year).
Calendarholiday calendar (e.g. TARGET). Default value = NullCalendar.
Conventionaccrual dates business day convention. Default value = Unadjusted.
TermDateConvtermination date business day convention. Default value = Unadjusted.
GenRuleDate generation rule (Backward, Forward, ThirdWednesday, Twentieth, TwentiethIMM, Zero). Default value = Backward.
EndOfMonthend of month convention. Ignored for Tenor below 1M. Default value = false.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlScheduleIsRegular

bool returnValue
qlScheduleIsRegular(
string ObjectId
long Index
any Trigger)
Description:

returns TRUE if the selected period in the given Schedule object is regular.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Schedule object
Indexone based period index. Default value = 1.
Triggerdependency tracking trigger

qlScheduleNextDate

long returnValue
qlScheduleNextDate(
string ObjectId
long RefDate
any Trigger)
Description:

returns the lowest date in the given Schedule object following the input reference date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Schedule object
RefDatereference date. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlSchedulePreviousDate

long returnValue
qlSchedulePreviousDate(
string ObjectId
long RefDate
any Trigger)
Description:

returns the highest date in the given Schedule object preceding the input reference date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Schedule object
RefDatereference date. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlScheduleRule

string returnValue
qlScheduleRule(
string ObjectId
any Trigger)
Description:

returns the DateGeneration::Rule of the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleSize

long returnValue
qlScheduleSize(
string ObjectId
any Trigger)
Description:

returns the number of dates in the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleStartDate

long returnValue
qlScheduleStartDate(
string ObjectId
any Trigger)
Description:

returns the start date of the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleTenor

string returnValue
qlScheduleTenor(
string ObjectId
any Trigger)
Description:

returns the tenor used to calculate the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleTerminationDateBDC

string returnValue
qlScheduleTerminationDateBDC(
string ObjectId
any Trigger)
Description:

returns the business day convention used to calculate the termination date of the given Schedule object.

Supported Platforms:

Excel, Calc

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

qlScheduleTruncated

string returnValue
qlScheduleTruncated(
string ObjectId
string OriginalSchedule
long TruncationDate
bool ReturnDatesBefore
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Schedule and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
OriginalScheduleoriginal schedule object ID.
TruncationDatetruncation date.
ReturnDatesBeforeReturn the dates before or after the truncation date. Default value = true.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag