Curve Building Script
SmartCurve Functions
#CurveScript is the default script used for expressions in Smart Curves.
bootstrap
bootstrap is a shortcut version of bootstrapCurve which creates an arbitrage-free monthly curve from an input curve containing any number of:
- Months
- Quarters
- Seasons
- Years
Syntax
bootstrap(BASE)
bootstrapAndShape
This function first bootstraps an input curve and then shapes it using the default shaping algorithm.
Syntax
bootstrapAndShape(BASE)
multiplyByFactor
This function multiplies an input curve by a fixed factor
Syntax
multiplyByFactor(BASE, factor)
divideByFactor
This function divides an input curve by a fixed factor
Syntax
divideByFactor(BASE, factor)
addPremium
This function adds a fixed premium to an input curve
Syntax
addPremium(BASE, premium)
discount
This function subtracts a fixed discount from an input curve
Syntax
discount(BASE, discount)
flatCurve
This function creates a monthly curve with the same value for every tenor. It takes 2 parameters:
- Months - the number of months you want the curve to be
- Value - the value you want to assign every tenor