Creates a Callable Bond Option object.
This function can only employ the Tree engine.
Once the object has been constructed, the value of the callable bond option can be obtained by executing the
CallableBondCleanPrice(),
CallableBondDirtyPrice() or
CallableBondOptionPrice() functions.
These function requires the input of a Bond object key, which must have been produced via a call to any of the Fixed Coupon Bond objects within the
CapeTools Bonds,
CapeTools Bonds (Yield) or
CapeTools Bonds (Price) categories of functions.
These functions would have returned a string 'KEY' which is to be passed to the 'BONDKEY' parameter of this function.
This function requires the input of a calibrated interest rate engine object key, which must have been produced via a call to one of the following functions :
TreeBondOptionEngine() (for european, bermudan, american pricing).
These functions would have returned a string 'KEY' which is to be passed to the 'PrcEngKEY' parameter of this function.
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 : "CALLBONDOPT"
- Key parameter
Key value to use as a handle for the created object
- Reload parameter
When creating this object for the first time, set this parameter to a positive value. Within Excel, when re-computing a worksheet where you do not wish to recreate the object, set this parameter to zero (0).
- BondKEY parameter
Key to an already constructed FixedCoupon Bond object.
- CallableType parameter
If the 'Callable' parameter has been set to true, then this parameter represents the Callable type 'Call' (for Callable), 'Put' (for Puttable), 'CallPut' (for Callable and Puttable). Note that if you indicate 'Put', and there is an value within the [Callable strike] column of the 'CallableStrikes' parameter, then this [Callable strike] column will be ignored. However if you indicate a value of 'CallPut' and you enter a value of zero (0) for an entry within the [Puttable strike] column of the 'CallableStrikes' parameter, then for this entry, the option will only be callable and not putable.
- CallableStrikes parameter
If the 'Callable' parameter has been set to true, then this parameter represents a 2 column [Callable strike/Putable strike] range. If you only want some dates to be callable but not putable, enter 0.0 within the corresponding 'Puttable Strike' column. The same is true vice versa. If you do not want a period callable or putable, enter 0.0 for both columns. Finally if you enter callable/putable values of only one row, these values will be applied to all the cashflows within the underlying instrument.
- YCKEY parameter
Key to an already constructed YieldCurve object.
- PrcEngKEY parameter
Key to an already constructed Tree Pricing Engine object.
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.