Creates a portfolio of BEAR/BULL spread option caplets/floorlets from this floating Rate Leg.
This structure produces a portfolio of BEAR/BULL spread options.
A BEAR/BULL option strategy involves trading in two options on a single floating rate fixing (reset) where the options involved must be either all puts or all calls.
If receiving the float leg, bought BEAR spread caplets or floorlets will be constructed, if however you are paying the float leg, bought BULL spread caplets or floorlets will be constructed.
You can also specify whether you want the spread option payoff to be between 0 and 1 by enabling the 'Digital' flag parameter.
Via the 'EnablePeriods' parameter, you can indicate which periods you actually want the option strategy to be enabled.
Thus you can indicate, for example, zeros (0) for the first 4 periods and then ones (1's) after that.
This would imply that the option strategies would only kick in after the 4th period.
You can price this strategy via the
PrcIROptionStrategy() function.
This function requires the input of a floating leg object (or an inverse floater leg object) key, which must have been produced via a call to one of the numerous Leg construction functions (see the
CapeTools FLOAT Legs or
CapeTools FIXED + FLOAT Legs category of functions).
This strategy does not support Averaging/Compounding legs.
These leg functions will have returned a string 'KEY' which is to be passed to the 'LegKey' parameter of this function.
Finally if the Index underlying the floatingLeg is a CMS Index, then the 'VCKey' parameter is not used as the leg object will have a reference to a volatility object.
This function creates an object and returns a string-key value to represent this created object.
The TAG value of the string-key returned (second part of the key) is : "BBSFLTLEG"
The C# example below contains all the sub-function calls leading up to this function call. As a result, the example can contain a lot of code.
The VB.NET, J#, C++.NET, Java, Excel VBA, Visual Basic 6 (via COM) and C++ examples below contain function code stubs for the calls leading up to this function call. However, the function call for this function is displayed.
You can easily reproduce the stub functions code from the
C# example.
Copyright (c) 2003-2007 CapeTools - All Rights Reserved.