Documente Academic
Documente Profesional
Documente Cultură
User's Guide
Adfin Options Functions - User's Guide
Republication or redistribution of Reuters content is expressly prohibited without the prior written consent of Reuters.
Except as permitted by law, no part of this document may be reproduced or transmitted by any process or means without the
prior consent of REUTERS Limited.
Reuters, by publishing this document, does not guarantee that any information contained herein is and will remain accurate or
that use of the information will ensure correct and faultless operation of the relevant service or equipment. Reuters, its agents
and employees shall not be held liable to or through any user for any loss or damage whatsoever resulting from reliance on the
information contained herein.
EFFIX, PowerPlus Pro, and Adfin are registered trademarks of the Reuters Group.
EFFIX Order Management System (OMS), EFFIX Licensing System (ELS), FxNSC, PIXL, PowerBase, and ROMS (Reuters
Order Management) are trademarks of the Reuters Group.
IDN, Network Management (NMS), Reuters DTS (Data Transformation System), Reuters DTM (Data Transformation Manager),
Reuters IPS (Internal Page Server), Reuters DCS (Data Contribution Servers), Reuters OCS (Optimizing Contribution Server),
Reuters Dealing 2000, Reuters GLCS (Global Limits Control System), Reuters KreditNet, Reuters KVAR+, Reuters News 2000,
RQF, RSF and Reuters Triarch are trademarks of REUTERS Limited.
Reuters and the Reuters sphere logo are registered trademarks and trademarks of the Reuters group of companies around the
world.
Microsoft Windows, Windows NT, Visual Basic and MS-DOS are registered trademarks, and Microsoft Excel, Microsoft Word,
and Microsoft Internet Explorer are products of Microsoft Corp. in the United States and other countries. Sun, Sun
Microsystems, Solaris and SunOS are trademarks of Sun Microsystems Inc. TIB is a registerd trademark, and Rendezvous is a
trademark of TIBCO Software Inc. UNIX is a registered trademark in the United States and other countries, licensed exclusively
through X/Open Company Limited.
Support
Tel: +33 1 47 62 67 00
Email: marvin.help@reuters.com
Subscribe to the Marvin Newsletter: marvin.mailing@reuters.com
2
Adfin Options Functions - User's Guide
TABLE OF CONTENTS
1.4. SWAPTIONS........................................................................................................................... 21
1.4.1. AdSwaptionPremium........................................................................................................ 21
1.4.2. AdSwaptionDeriv .............................................................................................................. 21
1.4.3. Previous Versions ............................................................................................................ 22
3
Adfin Options Functions - User's Guide
1.1.1. NormalC
=NormalC(Number)
Arguments
Number : x value
Return Value
x
N c ( x) = N (t )dt
−∞
See also
NormalS
1.1.2. NormalS
=NormalS(Number)
Arguments
Number : x value
Return Value
1 ( x − m) 2
N ( x) = exp[ − ]
2Πν 2ν 2
Note
This function was previously called Normal. It has been renamed due to an incompatibility with Excel.
See also
NormalC
1.1.3. OpCalcDeriv
=OpCalcDeriv(CalcDate,ExpiryDate,SpotPrice,StrikePrice,Volatility,
RiskFreeRateArray, ReturnArray, OptionStructure, RateStructure,
CalcStructure, AdMode)
Returns in an array all derivatives (delta, gamma, rho, theta, and vega) of an option on a security
(index, stock), a future, a commodity, or a currency.
4
Adfin Options Functions - User's Guide
In the case of an option on a security, the underlying pays a dividend that can be:
continuous
proportional
discounted
fixed
Arguments
Return Value
The return value depends on the value of AdMode. The default value is a vertical 9-cell array
containing:
When this array function is used as a standard function, all the elements are returned. To return, for
instance, the second element use "RET:2" as the AdMode value.
Similarly, when used with a horizontal array, only the first element is returned into all cells of the array.
To return a correct array, use "LAY:H" as the AdMode value.
It is also possible to return both parameter names and values using for instance "RET:B5" as
AdMode (in this case you must select a 2-column and 5-row array).
Notes
The string value used for OptionStructure cannot be empty. It must include at least the option
type (i.e. "CALL" or "PUT").
For compatibility with older releases, OpCalcDeriv returns only one derivative when this derivative
is specified in AdMode using the RES keyword.
5
Adfin Options Functions - User's Guide
The RES:FDELTA , RES:FRHO , RES:FVEGA , RES:FTHETA keywords in the AdMode argument are
supported only in the case of a European currency option (UI:CUR EXM:EUR in the
OptionStructure Argument) with the Black & Scholes Model (FT:BS in the CalcStructure Argument).
Examples
The following examples show the use of the new OpCalcDeriv function in derivatives calculations. You
can copy and paste them into an Excel spreadsheet to verify the consistency of the results.
Computing the premium on a European call option using the Black & Scholes model:
In PPPro 4.0: =OpCalcDeriv("25APR97","25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:EUR OCM:BS UI:SEC RATES:CONT","LAY:V RET:B")
In PPPro 4.5: =OpCalcDeriv("25APR97","25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:EUR","RM:YTM RATETYPE:CONT","CMT:FORM FT:BS","LAY:V RET:B")
Computing the premium on an American call option using the Whaley model:
In PPPro 4.0: =OpCalcDeriv("25APR97","25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:AMER OCM:WHALEY UI:SEC RATES:CONT","LAY:V RET:B")
In PPPro 4.5: =OpCalcDeriv("25APR97", "25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:AMER","RM:YTM RATETYPE:CONT","CMT:FORM FT:WHALEY","LAY:V RET:B")
Computing the premium on an American call option using the Cox, Ross & Rubinstein model:
In PPPro 4.0: =OpCalcDeriv("25APR97","25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:AMER OCM:COX UI:SEC RATES:CONT COXITER:31","LAY:V RET:B")
In PPPro 4.5: =OpCalcDeriv("25APR97","25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:AMER","RM:YTM RATETYPE:CONT","CMT:TREE TITER:31","LAY:V RET:B")
See Also
OpPremium
1.1.4. OpHistVol
=OpHistVol(PriceArray, OpMode)
Calculates the historical volatility of an option on a security (index, stock), a future, a commodity, or a
currency, from a set of underlying prices.
To define the type of prices used (either close prices, or high and low prices), use the HVM keyword in
OpMode.
Arguments
Return Value
See also
OpImpliedVol
6
Adfin Options Functions - User's Guide
1.1.5. OpImpliedVol
Calculates the implied volatility of an option on a security (index, stock), a future, a commodity, or a
currency, from the option premium.
Arguments
Return Value
Notes
The string value used for OptionStructure cannot be empty. It must include at least the option
type (i.e. "CALL" or "PUT").
The dividend rate(s) specified in ReturnArray can be continuous, proportional, discounted or
fixed.
1.1.6. OpPremium
Calculates the premium of an option on a security (index, stock), a future, a commodity, or a currency.
In the case of an option on a security, the underlying pays a dividend that can be:
continuous
proportional
discounted
fixed
7
Adfin Options Functions - User's Guide
Arguments
Return Value
Note
The string value used for OptionStructure cannot be empty. It must include at least the option
type (i.e. "CALL" or "PUT").
Examples
The following examples show the use of the new OpPremium function for different calculations. You
can copy and paste them into an Excel spreadsheet to verify the consistency of the results.
Computing the premium on a European call option using the Black & Scholes model:
In PPPro 4.0: =OpPremium("25APR97","25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:EUR OCM:BS UI:SEC RATE:CONT")
In PPPro 4.5: =OpPremium("25APR97","25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:EUR", "RM:YTM RATETYPE:CONT", "CMT:FORM FT:BS")
Computing the premium on an American call option using the Whaley model:
In PPPro 4.0: =OpPremiumCrv("25APR97", "25FEB98", 1690, 1550, 0.19, 0, 0.02,
ZcArray, "CALL EXM:AMER OCM:WHALEY UI:SEC RATE:CONT")
In PPPro 4.5: =OpPremium("25APR97", "25FEB98", 1690, 1550, 0.19, ZcArray,
0.02, "CALL EXM:AMER", "RM:YC RATETYPE:CONT", "CMT:FORM FT:WHALEY"), where
ZcArray is a two-column array containing dates and rates.
Computing the premium on an American call option using the Cox, Ross & Rubinstein model:
In PPPro 4.0: =OpPremium("25APR97", "25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:AMER OCM:COX UI:SEC RATE:CONT COXITER:31")
In PPPro 4.5: =OpPremium("25APR97", "25FEB98", 1690, 1550, 0.19, 0.018, 0.02,
"CALL EXM:AMER", "RM:YTM RATETYPE:CONT", "CMT:TREE TITER:31")
See also
OpCalcDeriv
OpImpliedVol
8
Adfin Options Functions - User's Guide
Important
Because of the new architecture of Adfin Analytics, these functions are now provided by the following
functions:
OpCalcDeriv
OpImpliedVol
OpPremium
Those old functions still work. However, you are advised to use the new functions that offer better
performance and flexibility.
Old Functions
Returns in an array all derivatives (delta, gamma, theta, vega, rho) of an option, the underlying of which
pays a continuous dividend yield, assuming a constant volatility and risk-free interest rate.
Arguments
Returns in an array all derivatives (delta, gamma, rho, theta, vega) of an option using a set of discrete
dividends, and/or a set of exercise dates, and/or a risk-free rate curve, and/or a volatility curve.
The sets or curves included in the CrvArray parameter should be specified in OptionStructure
using the CAS keyword.
Arguments
9
Adfin Options Functions - User's Guide
Returns in an array all derivatives (delta, gamma, rho, theta, vega) of an option, the underlying of which
pays discrete dividends, assuming a constant volatility and risk-free interest rate.
Arguments
Arguments
10
Adfin Options Functions - User's Guide
Calculates the implied volatility of an option, the underlying of which pays discrete dividends, assuming
a constant risk-free interest rate.
Arguments
Calculates the premium of an option, the underlying of which pays a continuous dividend yield,
assuming a constant volatility and risk-free interest rate.
Arguments
11
Adfin Options Functions - User's Guide
Calculates the premium of an option using a set of discrete dividends, and/or a set of exercise dates,
and/or a risk-free rate curve, and/or a volatility curve.
The sets or curves included in the CrvArray parameter should be specified in OptionStructure
using the CAS keyword.
Arguments
Calculates the premium of an option, the underlying of which pays discrete dividends, assuming a
constant volatility and risk-free interest rate.
Arguments
12
Adfin Options Functions - User's Guide
1.2.1. AdBondOptionDeriv
Returns an array of all the derivatives (delta, gamma, rho, theta, vega) of a bond option defined from a
bond structure.
Arguments
Return Value
The return value depends on the value of AdMode. The default value is a vertical 5-cell array
containing:
When this array function is used as a standard function, all the elements are returned. To return the
second element use "RET:2" as AdMode.
Similarly, when used with a horizontal array, only the first element is returned into all the cells of the
array. To return a correct, array use "LAY:H" as AdMode.
It is also possible to return both parameter names and values using for instance "RET:B5" as
AdMode (in this case you must select a 2-column and 5-row array).
Notes
The string value used for OptionStructure cannot be empty. It must include at least the option
type (keyword CALL or PUT).
By default, Adfin assumes that the StrikePrice argument stands for the gross price of the
bond. To use the clean price of the bond, use the PX keyword in CalcStructure.
See also
AdBondOptionPremium
13
Adfin Options Functions - User's Guide
1.2.2. AdBondOptionPremium
Arguments
Return Value
The return value depends on the value of AdMode. The default value is the bond option premium. If
needed, the second returned value is the bond price.
Notes
The string value used for OptionStructure cannot be empty. It must include at least the option
type (keyword CALL or PUT).
By default, Adfin assumes that the StrikePrice argument stands for the gross price of the
bond. To use the clean price of the bond, use the PX keyword in CalcStructure.
See also
AdBondOptionDeriv
Important
Because of the new architecture of Adfin Analytics, these old functions have been replaced with the
new functions AdBondOptionPremium, and AdBondOptionDeriv
Adfin Options supports both architectures. However, you are advised to use these new functions that
offer better performance and flexibility.
14
Adfin Options Functions - User's Guide
Old Functions
Arguments
Returns in an array all derivatives (delta, gamma, rho, theta, vega) of a bond option defined from a
bond structure.
Arguments
Calculates the premium of a bond option defined from a set of cash flows.
Arguments
15
Adfin Options Functions - User's Guide
Returns in an array all derivatives (delta, gamma, rho, theta, vega) of a bond option defined from a set
of cash flows.
Arguments
1.3.1. AdCapFloorCaplets
Arguments
16
Adfin Options Functions - User's Guide
Return Value
The return value is a vertical 5-column array containing for all caplets or floorlets, the date, the strike
price, the volatility, the forward rate, and the premium.
Notes
The string value used for CapFloorStructure cannot be empty. It must include at least the
instrument type (keyword CAP, FLOOR or COLLAR) and the caplet or floorlet frequency (keyword
FRQ).
When using the Hull & White model, only money market rates can be used to price caps and floors.
When valuing an already issued instrument, the rate for the current caplet or floorlet must be
entered in the function using the argument FirstRate (it cannot be calculated from the zero-
coupon yield curve).
See also
AdCapFloorImpliedVol
AdCapFloorPremium
1.3.2. AdCapFloorImpliedVol
Arguments
Return Value
Notes
The string value used for CapFloorStructure cannot be empty. It must include at least the
instrument type (keyword CAP, FLOOR or COLLAR) and the caplet or floorlet frequency (keyword
FRQ).
When valuing an already issued instrument, the rate for the current caplet or floorlet must be
entered in the function using the argument FirstRate (it cannot be calculated from the zero-
coupon yield curve).
17
Adfin Options Functions - User's Guide
See also
Prior Versions
AdCapFloorCaplets
AdCapFloorPremium
1.3.3. AdCapFloorPremium
Arguments
Return Value
Notes
When using the Hull & White model, only money market rates can be used to price caps and floors.
See also
AdCapFloorCaplets
AdCapFloorImpliedVol
18
Adfin Options Functions - User's Guide
Important
CpflCaplets
CpflDelta
CpflImpliedVol
CpflPremium.
Because of the new architecture of Adfin Analytics, these old functions have been replaced with the
following functions:
AdCapFloorCaplets
AdCapFloorImpliedVol
AdCapFloorPremium
Those old functions still work, but you are advised to use the new ones that offer better performance
and flexibility.
Old Functions
Arguments
Return Value
The return value is a vertical 5-column array containing for all caplets/floorlets, the date, the strike
price, the volatility, the forward rate, and the premium.
19
Adfin Options Functions - User's Guide
Arguments
Return Value
Arguments
Arguments
20
Adfin Options Functions - User's Guide
1.4. SWAPTIONS
1.4.1. AdSwaptionPremium
Arguments
Return Value
Note
The European mode is the only exercise mode available for a swaption when the keyword RM has the
values RM:BS or RM:HW.
See also
AdSwaptionDeriv
1.4.2. AdSwaptionDeriv
Returns in an array all derivatives (delta, gamma, theta, vega) of an option on a swap.
21
Adfin Options Functions - User's Guide
Arguments
Return Value
The return value depends on the value of AdMode. The default value is a vertical 4-cell array
containing:
See also
AdSwaptionPremium
Important
Previous versions of Adfin Options include the premium function OpSwaptionPremium. Because of the
new architecture of Adfin Analytics, this old function has been replaced with the new function
AdSwaptionPremium
That old function still works, but you are advised to use the new function that offers better performance
and flexibility.
Old Function
22
Adfin Options Functions - User's Guide
Arguments
23