Creates a Discrete Averaging Asian Option object.
This function can employ different pricing engines (Analytical and MonteCarlo).
Once the object has been constructed, the value of the option can be obtained by executing the
PrcObjDiscreteAsianOption() function.
This function requires the input of a BlackScholes Process object key, which must have been produced via a call to one of the following functions :
GBSProcess(),
GBSProcess2(),
BS73Process(),
BS73Process2(),
BlackProcess(),
BlackProcess2(),
GKProcess() or
GKProcess2(). These functions would have returned a string 'KEY' which is to be passed to the 'stochProcess' parameter of this function.
This function requires the input of a payoff object key, which must have been produced via a call to one of the following functions :
PlainVanilla(),
PercentageStrike(),
CashOrNothing(),
AssetOrNothingPayoff() or
Gap(). These functions would have returned a string 'KEY' which is to be passed to the 'payoff' parameter of this function.
This function requires the input of a exercise object key, which must have been produced via a call to one of the following functions :
AmericanExercise(),
EuropeanExercise(),
BermudanExercise(),
ExerciseFromLeg(),
ExerciseFromSche(),
ExerciseFromSW(),
ExerciseFromFIXBND() or
ExerciseFromFLTBND(). These functions would have returned a string 'KEY' which is to be passed to the 'exercise' parameter of this function.
This function requires the input of an engine object key, which must have been produced via a call to one of the Basket Engine creation functions present within the
CapeTools Asian Engine category of functions (with the exception of the
ContinuousAsianEngine() function).
These functions would have returned a string 'KEY' which is to be passed to the 'engine' 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 : "DASIANOPT"
- 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).
- OptionType parameter
Type of Asian option. (G)eometric, (A)rithmetic
- runningAccum parameter
Current running accumulator, typically set to a value of 1.0
- pastFixings parameter
The number of past fixings.
- FixingDates parameter
Array of fixing dates
- stochProcess parameter
Key to an already constructed BlackScholesProcess object.
- payoff parameter
Key to an already constructed Payoff object.
- exercise parameter
Key to an already constructed Exercise object.
- engine parameter
Key to an already constructed PricingEngine 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.