Prices a capped/floored or a combination of option strategies on a floating (or inverse) leg object via a Black Scholes methodology.
This function cannot price option structures on CMS, In-Arrears, ZeroCoupon, Averaging or Compounding legs.
The leg object that is to be used within this function must have been previously created via a call to one of the following strategy functions.
For regular caps/floors :
CreateCapFLTLeg() or
CreateFloorFLTLeg(). For BEAR/BULL spread options
CreateBBSFLTLeg(). For BACKSPREAD options
CreateBKSFLTLeg(). For STRADDLE options
CreateSTRDFLTLeg(). For STRANGLE options
CreateSTRGFLTLeg(). For BUTTERFLY options
CreateBFLYFLTLeg(). For XMASTREE options
CreateXTREEFLTLeg(). For CONDOR options
CreateCONDORFLTLeg(). These functions would have returned a string 'KEY' which is to be passed to the 'Key' parameter of this function.
Only the option strategy price (and risk numbers) are returned from this function.
To compute the price of the total strategy (option strategy + the underlying leg), you must value the underlying leg object (via the
PrcLegObject() or
PrcInverseLegObject() (for inverse floater legs) function) and then add this to the 'PREMIUM' output from this function.
- Key parameter
Leg object Key to an already created Leg object (ie FIX legs, FLOAT legs, Quanto, IA etc...).
- Level parameter
Whether you would like to see the PV for the entire structure or for each cashflow. Can include extended information. Valid values are - TOTAL, SUMMARY, CASHFLOW and BREAKDOWN.
- FXManagerKey parameter
Optional key to an already created FXManager object.
- ReportPVCcy parameter
Optional currency code that you wish the value of the leg to be reported in (must be specified if the 'FXManagerKey' parameter is specified).
- Greek parameter
Output - PREMIUM, DELTA, GAMMA, VEGA, VANNA and THETA. If the underlying Index object is a CMS object, then you can only request PREMIUM, DELTA, GAMMA or VEGA (VEGA, not via the full integration via swaption method). All the greeks (except 'PREMIUM') output are equivalent to the mathematical notion of a derivative, thus if you would like to see the risk in terms of a finite movement (ie - 5 percent or 10 basis points move in the interested parameter) simply multiply the output amount by the shift of interest.
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.