DM_Quanto





http://www.QuantTools.com
CapeTools Derivative Matrix function list

Welcome | Documentation format | QuantTools Groups | QuantTools Categories | Licence

Key TAGs | Excel Index | API Index



A fixed exchange-rate foreign-equity option (Quanto) is denominated in another currency than that of the underlying equity exposure.

The face value of the currency protection expands or contracts to cover changes in the foreign currency value of the underlying asset.

This function utilizes an analytical (closed-form) algorithm.

Note that the risk (greek) numbers produced are the mathematically defined equivalent of a derivative (instantaneous change).

You can convert the risk number to your own definition of risk by multiplying by the shift you require.

For example, for a typical definition of VANNA, (change in underlying and volatility), where one defines the change in the underlying as a single unit of change (1.0) and the change in volatility as a one percent change (0.01), simply multiply the VANNA result calculated by (1.0*0.01).

For VEGA, change in volatility of one percent (0.01), simply multiply the VEGA result by 0.01. Within option contracts THETA is negative, however the mathematically defined equivalent of THETA (instantaneous FORWARD change in time) is positive.

Internally we have negated this value for you.

To express THETA as THETA per day, simply multiply the THETA result by 1/365 or 1/252 (depending on whether you require calendar days or business days).

This function returns a partial derivative matrix of all second order derivatives (Hessian matrix).

Each individual second order derivative as well as the first order derivatives can be obtained, individually, via the pricing functions present within the CapeTools Exotic Options category of functions.

However this function computes all the second order risk numbers in a single function call.



Note: Within Excel, the function is named - CT.DM_Quanto




High level graphic of DM_Quanto() function with parameters. Blue square node is the actual function with the parameters ordered.



Parameter Description


  1. ValueDate parameter

    Valuation Date (typically equal to Today's date)
  2. dayCounter parameter

    For any input parameter within this function that represents a dividend rate, risk free rate, foreign rate or holding cost rate, these rates will be defined as annually compounded using the DayCounter defined within this parameter. Thus if 'actual365' is used for this 'dayCounter' parameter, then all input parameters that represent a dividend, risk free, foreign or holding cost rates will be defined as annually compounded Actual365 rates.
  3. CallPut parameter

    Option Types (C)all or (P)ut
  4. Ep parameter

    Predetermined exchange rate specified in units of domestic currency per unit of foreign currency.
  5. S parameter

    Underlying price in foreign currency
  6. X parameter

    Delivery price in foreign currency
  7. T parameter

    Time to option maturity.
  8. r parameter

    Domestic interest rate
  9. rf parameter

    Foreign interest rate.
  10. q parameter

    Instantaneous proportional dividend payout rate of the underlying asset
  11. vS parameter

    Volatility of the underlying asset.
  12. vE parameter

    Volatility of the domestic exchange rate.
  13. rho parameter

    Correlation between the asset and the domestic exchange rate.


Extended information

Function Syntax

VB Syntax


Variant CTDerivativeMatrix.DM_Quanto( _
Long ValueDate, _
DayCountEnum dayCounter, _
String CallPut, _
Double Ep, _
Double S, _
Double X, _
Long T, _
Double r, _
Double rf, _
Double q, _
Double vS, _
Double vE, _
Double rho)


Excel Spreadsheet Syntax


=CT.DM_Quanto(
Excel Numeric Cell ValueDate,
Excel String Cell dayCounter,
Excel String Cell CallPut,
Excel Numeric Cell Ep,
Excel Numeric Cell S,
Excel Numeric Cell X,
Excel Numeric Cell T,
Excel Numeric Cell r,
Excel Numeric Cell rf,
Excel Numeric Cell q,
Excel Numeric Cell vS,
Excel Numeric Cell vE,
Excel Numeric Cell rho)


C++ Syntax


static CTRangeDataCPP DM_Quanto(
long ValueDate,
DayCountEnum dayCounter,
std::string CallPut,
double Ep,
double S,
double X,
long T,
double r,
double rf,
double q,
double vS,
double vE,
double rho);


DotNET Syntax


CTRangeData CTDerivativeMatrixSA.DM_Quanto(
System.Int32 ValueDate,
CTIEnums.DayCountEnum dayCounter,
System.String CallPut,
System.Double Ep,
System.Double S,
System.Double X,
System.Int32 T,
System.Double r,
System.Double rf,
System.Double q,
System.Double vS,
System.Double vE,
System.Double rho);

Parameter data types

ArgNameArgTypeIsKey
ValueDateLongFALSE
dayCounterDayCountEnumFALSE
CallPutStringFALSE
EpDoubleFALSE
SDoubleFALSE
XDoubleFALSE
TLongFALSE
rDoubleFALSE
rfDoubleFALSE
qDoubleFALSE
vSDoubleFALSE
vEDoubleFALSE
rhoDoubleFALSE


Example Inputs

The first column represents the name of the parameters. The second column specifies whether the parameters are optional or not. Finally the last column provides some sample input data.
Function call input string-keys are always in the format : "NAME.EXTTAG.TICKER" The "EXTTAG.TICKER" part is determined from the output of other, capetools, object creation functions.


ArgNameIsOptional (Excel only)Example
ValueDateFALSE19/Jul/2005 (serial date type)
dayCounterFALSEACT365
CallPutFALSECall
EpFALSE1.5
SFALSE100.0
XFALSE105
TFALSE17/Jan/2006 (serial date type)
rFALSE0.08
rfFALSE0.05
qFALSE0.04
vSFALSE0.20
vEFALSE0.10
rhoFALSE0.3


Example function usage


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.


If you are accessing this functrion via the MiniXL libraries, this function is present within the CT.QL.Pricing20 MiniXL Excel Addin.

Within our Excel Example Addin Generator, we have used the following QuantTools sub-functions in order to prepare the arguments needed to call the DM_Quanto() function. If you are executing this function via the MiniXL libraries, the module addin name, (in brackets, to the right of the sub-functions listed below), indicates the MiniXL library in which the sub-function is held. You will need to load this library into your Excel session (along with any other libraries that the sub-function call within the addin requires (ie - CT.QT.Utils20 addin in almost all cases) in order for the example to compute successfully.


The following four examples demostrate calling this function within a Microsoft .NET environment

The following four examples demostrate calling this function within a non .NET environment

The following is a sample output from executing the DM_Quanto() function call


Example
DEPDSDXDTDRDRFDQDVSDVEDRHO
DEP00.382374-0.3304045.12708-1.7676519.0663-19.066325.6446-1.14398-0.381326
DS0.3823740.0394305-0.03755280.19664-0.2859952.25212-2.252121.05165-0.135127-0.0450423
DX-0.330404-0.03755280.0357646-0.1140320.247124-1.87251.8725-0.6352210.112350.0374499
DT5.127080.19664-0.114032-8.15722-9.1522867.1612-67.161238.8524-4.02967-1.34322
DR-1.76765-0.2859950.247124-9.152281.3221-14.260614.2606-19.18080.8556340.285211
DRF19.06632.25212-1.872567.1612-14.2606112.297-112.29752.4385-6.73784-2.24595
DQ-19.0663-2.252121.8725-67.161214.2606-112.297112.297-52.43856.737842.24595
DVS25.64461.05165-0.63522138.8524-19.180852.4385-52.438517.3588-11.7262-3.90872
DVE-1.14398-0.1351270.11235-4.029670.855634-6.737846.73784-11.72620.40427-5.58514
DRHO-0.381326-0.04504230.0374499-1.343220.285211-2.245952.24595-3.90872-5.585140.0449189



Copyright (c) 2003-2007 CapeTools - All Rights Reserved.