Creates an option payoff object which is a binary asset-or-nothing payoff.
For a call, if(price-strike is greater than 0.0 , price , 0.0), for a put, if(strike-price is greater than 0.0 , price , 0.0).
The string 'Key' resulting from a successful construction of this payoff object can be passed to the following functions :
VanillaOption(),
ContinuousAsianOption(),
DiscreteAsianOption(),
BarrierOption() and
DivVanillaOption().
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 : "ASSETPAY"
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.