Skip to content

Commit 3e996d7

Browse files
pcaspersjenkins
authored andcommitted
QPR-12337 wip
1 parent 022410b commit 3e996d7

1 file changed

Lines changed: 187 additions & 71 deletions

File tree

Docs/UserGuide/parameterisation/pricingengines.tex

Lines changed: 187 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,154 @@ \subsubsection{Product Type: EquityAsianOptionGeometricStrike}
20862086
\label{lst:peconfig_EquityAsianOptionGeometricStrike_ScriptedTrade_ScriptedTrade}
20872087
\end{longlisting}
20882088

2089+
%--------------------------------------------------------
2090+
\subsubsection{Product Type: EquityBarrierOption, FxBarrierOption}
2091+
%--------------------------------------------------------
2092+
2093+
Used by trade type: EquityBarrierOption resp. FxBarrierOption
2094+
2095+
Available Model/Engine pairs:
2096+
2097+
\begin{itemize}
2098+
\item BlackScholesMerton/AnalyticBarrierEngine
2099+
\item BlackScholesMerton/FdBlackScholesBarrierEngine
2100+
\end{itemize}
2101+
2102+
Engine description:
2103+
2104+
BlackScholes/AnalyticBarrierEngine builds a AnalyticBarrierEngine. A sample configuration is shown in listing
2105+
\ref{lst:peconfig_EquityBarrierOption_BlackScholesMerton_AnalyticBarrierEngine} for equity. The configuration for fx is
2106+
identical except the Model is set to GarmanKohlhagen.
2107+
2108+
The parameters have the following meaning:
2109+
2110+
\begin{itemize}
2111+
\item SensitivityTemplate [optional]: the sensitivity template to use
2112+
\end{itemize}
2113+
2114+
\begin{longlisting}
2115+
\begin{minted}[fontsize=\footnotesize]{xml}
2116+
<Product type="EquityBarrierOption">
2117+
<Model>BlackScholesMerton</Model>
2118+
<ModelParameters/>
2119+
<Engine>AnalyticBarrierEngine</Engine>
2120+
<EngineParameters>
2121+
<Parameter name="SensitivityTemplate">EQ_Analytical</Parameter>
2122+
</EngineParameters>
2123+
</Product>
2124+
\end{minted}
2125+
\caption{Configuration for Product EquityBarrierOption, Model BlackScholesMertong Engine AnalyticBarrierEngine}
2126+
\label{lst:peconfig_EquityBarrierOption_BlackScholesMerton_AnalyticBarrierEngine}
2127+
\end{longlisting}
2128+
2129+
BlackScholes/FdBlackScholesBarrierEngine builds a FdBlackScholesBarrierEngine. A sample configuration is shown in
2130+
listing \ref{lst:peconfig_EquityBarrierOption_BlackScholesMerton_FdBlackScholesBarrierEngine} for equity. The
2131+
configuration for fx is identical except the Model is set to GarmanKohlhagen.
2132+
2133+
The parameters have the following meaning:
2134+
2135+
\begin{itemize}
2136+
\item Scheme: The finite difference scheme to use
2137+
\item TimeStepsPerYear: Time grid specification
2138+
\item XGrid: State grid specification
2139+
\item DampingSteps: Number of damping steps taken by FD solver
2140+
\item EnforceMonotoneVariance [optional]: If true variance is modified to be monotone if needed, defaults to true
2141+
\item SensitivityTemplate [optional]: the sensitivity template to use
2142+
\end{itemize}
2143+
2144+
\begin{longlisting}
2145+
\begin{minted}[fontsize=\footnotesize]{xml}
2146+
<Product type="EquityBarrierOption">
2147+
<Model>BlackScholesMerton</Model>
2148+
<ModelParameters/>
2149+
<Engine>FdBlackScholesBarrierEngine</Engine>
2150+
<EngineParameters>
2151+
<Parameter name="Scheme">Douglas</Parameter>
2152+
<Parameter name="TimeGridPerYear">100</Parameter>
2153+
<Parameter name="XGrid">100</Parameter>
2154+
<Parameter name="DampingSteps">0</Parameter>
2155+
<Parameter name="EnforceMonotoneVariance">true</Parameter>
2156+
<Parameter name="SensitivityTemplate">EQ_FD</Parameter>
2157+
</EngineParameters>
2158+
</Product>
2159+
\end{minted}
2160+
\caption{Configuration for Product EquityBarrierOption, Model BlackScholesMerton, Engine FdBlackScholesBarrierEngine}
2161+
\label{lst:peconfig_EquityBarrierOption_BlackScholesMerton_FdBlackScholesBarrierEngine}
2162+
\end{longlisting}
2163+
2164+
%--------------------------------------------------------
2165+
\subsubsection{Product Type: EquityDoubleBarrierOption, FxDoubleBarrierOption}
2166+
%--------------------------------------------------------
2167+
2168+
Used by trade type: EquityDoubleBarrierOption, FxDoubleBarrierOption
2169+
2170+
Available Model/Engine pairs: GarmanKohlhagen/AnalyticDoubleBarrierEngine (both fx and equity)
2171+
2172+
Engine description:
2173+
2174+
GarmanKohlhagen/AnalyticDoubleBarrierEngine builds a AnalyticDoubleBarrierEngine. A sample configuration is shown in
2175+
listing \ref{lst:peconfig_FxDoubleBarrierOption_GarmanKohlhagen_AnalyticDoubleBarrierEngine}. The configuration for equity
2176+
is identical.
2177+
2178+
The parameters have the following meaning:
2179+
2180+
\begin{itemize}
2181+
\item SensitivityTemplate [optional]: the sensitivity template to use
2182+
\end{itemize}
2183+
2184+
\begin{longlisting}
2185+
\begin{minted}[fontsize=\footnotesize]{xml}
2186+
<Product type="FxDoubleBarrierOption">
2187+
<Model>GarmanKohlhagen</Model>
2188+
<ModelParameters/>
2189+
<Engine>AnalyticDoubleBarrierEngine</Engine>
2190+
<EngineParameters>
2191+
<Parameter name="SensitivityTemplate">FX_Analytical</Parameter>
2192+
</EngineParameters>
2193+
</Product>
2194+
\end{minted}
2195+
\caption{Configuration for Product FxDoubleBarrierOption, Model GarmanKohlhagen, Engine AnalyticDoubleBarrierBinaryEngine}
2196+
\label{lst:peconfig_FxDoubleBarrierOption_GarmanKohlhagen_AnalyticDoubleBarrierEngine}
2197+
\end{longlisting}
2198+
2199+
2200+
%--------------------------------------------------------
2201+
\subsubsection{Product Type: EquityDigitalOption, FxDigitalOption}
2202+
%--------------------------------------------------------
2203+
2204+
Used by trade type: EquityDigitalOption, FxDigitalOption
2205+
2206+
Available Model/Engine pairs: BlackScholesMerton/AnalyticEuropeanEngine (equity)
2207+
resp. GarmanKohlhagen/AnalyticEuropeanEngine (fx)
2208+
2209+
Engine description:
2210+
2211+
BlackScholesMerton/AnalyticEuropeanEngine (equity) resp. GarmanKohlhagen/AnalyticEuropeanEngine (fx) builds a
2212+
AnalyticEuropeanEngine. A sample configuration is shown in listing
2213+
\ref{lst:peconfig_FxDigitalOption_GarmanKohlhagen_AnalyticEuropeanEngine} for fx. The configuration for equity is
2214+
identical except the Model is set to BlackScholesMerton.
2215+
2216+
The parameters have the following meaning:
2217+
2218+
\begin{itemize}
2219+
\item SensitivityTemplate [optional]: the sensitivity template to use
2220+
\end{itemize}
2221+
2222+
\begin{longlisting}
2223+
\begin{minted}[fontsize=\footnotesize]{xml}
2224+
<Product type="FxDigitalOption">
2225+
<Model>GarmanKohlhagen</Model>
2226+
<ModelParameters/>
2227+
<Engine>AnalyticEuropeanEngine</Engine>
2228+
<EngineParameters>
2229+
<Parameter name="SensitivityTemplate">FX_Analytical</Parameter>
2230+
</EngineParameters>
2231+
</Product>
2232+
\end{minted}
2233+
\caption{Configuration for Product FxDigitalOption, Model GarmanKohlhagen, Engine AnalyticEuropeanEngine}
2234+
\label{lst:peconfig_FxDigitalOption_GarmanKohlhagen_AnalyticEuropeanEngine}
2235+
\end{longlisting}
2236+
20892237
%--------------------------------------------------------
20902238
\subsubsection{Product Type: EquityEuropeanCompositeOption}
20912239
%--------------------------------------------------------
@@ -2297,6 +2445,43 @@ \subsubsection{Product Type: EquityOptionAmerican}
22972445
\label{lst:peconfig_EquityOptionAmerican_BlackScholesMerton_BaroneAdesiWhaleyApproximationEngine}
22982446
\end{longlisting}
22992447

2448+
%--------------------------------------------------------
2449+
\subsubsection{Product Type: EquityTouchOption, FxTouchOption}
2450+
%--------------------------------------------------------
2451+
2452+
Used by trade type: EquityTouchOption, FxTouchOption
2453+
2454+
Available Model/Engine pairs: BlackScholesMerton/AnalyticDigitalAmericanEngine for equity
2455+
resp. GarmanKohlhagen/AnalyticDigitalAmericanEngine for fx
2456+
2457+
Engine description:
2458+
2459+
BlackScholesMerton/AnalyticDigitalAmericanEngine (equity) reps. GarmanKohlhagen/AnalyticDigitalAmericanEngine (fx)
2460+
builds a AnalyticDigitalAmericanEngine (one touch) or AnalyticDigitalAmericanKOEngine (no touch). A sample configuration
2461+
is shown in listing \ref{lst:peconfig_FxTouchOption_GarmanKohlhagen_AnalyticDigitalAmericanEngine} for fx. The
2462+
configuration for equity is the same except the Model ist set to BlackScholesMerton.
2463+
2464+
The parameters have the following meaning:
2465+
2466+
\begin{itemize}
2467+
\item SensitivityTemplate [optional]: the sensitivity template to use
2468+
\end{itemize}
2469+
2470+
\begin{longlisting}
2471+
\begin{minted}[fontsize=\footnotesize]{xml}
2472+
<Product type="FxTouchOption">
2473+
<Model>GarmanKohlhagen</Model>
2474+
<ModelParameters/>
2475+
<Engine>AnalyticDigitalAmericanEngine</Engine>
2476+
<EngineParameters>
2477+
<Parameter name="SensitivityTemplate">FX_Analytical</Parameter>
2478+
</EngineParameters>
2479+
</Product>
2480+
\end{minted}
2481+
\caption{Configuration for Product , Model , Engine }
2482+
\label{lst:peconfig_FxTouchOption_GarmanKohlhagen_AnalyticDigitalAmericanEngine}
2483+
\end{longlisting}
2484+
23002485
%--------------------------------------------------------
23012486
\subsubsection{Product Type: EquityVarianceSwap, CommodityVarianceSwap, FxVarianceSwap}
23022487
%--------------------------------------------------------
@@ -2813,40 +2998,6 @@ \subsubsection{Product Type: FxAsianOptionGeometricStrike}
28132998
\label{lst:peconfig_FxAsianOptionGeometricStrike_ScriptedTrade_ScriptedTrade}
28142999
\end{longlisting}
28153000

2816-
%--------------------------------------------------------
2817-
\subsubsection{Product Type: FxDigitalOption}
2818-
%--------------------------------------------------------
2819-
2820-
Used by trade type: FxDigitalOption
2821-
2822-
Available Model/Engine pairs: GarmanKohlhagen/AnalyticEuropeanEngine
2823-
2824-
Engine description:
2825-
2826-
GarmanKohlhagen/AnalyticEuropeanEngine builds a AnalyticEuropeanEngine. A sample configuration is shown in listing
2827-
\ref{lst:peconfig_FxDigitalOption_GarmanKohlhagen_AnalyticEuropeanEngine}
2828-
2829-
The parameters have the following meaning:
2830-
2831-
\begin{itemize}
2832-
\item SensitivityTemplate [optional]: the sensitivity template to use
2833-
\end{itemize}
2834-
2835-
\begin{longlisting}
2836-
\begin{minted}[fontsize=\footnotesize]{xml}
2837-
<Product type="FxDigitalOption">
2838-
<Model>GarmanKohlhagen</Model>
2839-
<ModelParameters/>
2840-
<Engine>AnalyticEuropeanEngine</Engine>
2841-
<EngineParameters>
2842-
<Parameter name="SensitivityTemplate">FX_Analytical</Parameter>
2843-
</EngineParameters>
2844-
</Product>
2845-
\end{minted}
2846-
\caption{Configuration for Product FxDigitalOption, Model GarmanKohlhagen, Engine AnalyticEuropeanEngine}
2847-
\label{lst:peconfig_FxDigitalOption_GarmanKohlhagen_AnalyticEuropeanEngine}
2848-
\end{longlisting}
2849-
28503001
%--------------------------------------------------------
28513002
\subsubsection{Product Type: FxDigitalOptionEuropeanCS}
28523003
%--------------------------------------------------------
@@ -3116,41 +3267,6 @@ \subsubsection{Product Type: FxOptionAmerican}
31163267
\label{lst:peconfig_FxOptionAmerican_GarmanKohlhagen_BaroneAdesiWhaleyApproximationEngine}
31173268
\end{longlisting}
31183269

3119-
%--------------------------------------------------------
3120-
\subsubsection{Product Type: FxTouchOption}
3121-
%--------------------------------------------------------
3122-
3123-
Used by trade type: FxTouchOption
3124-
3125-
Available Model/Engine pairs: GarmanKohlhagen/AnalyticDigitalAmericanEngine
3126-
3127-
Engine description:
3128-
3129-
GarmanKohlhagen/AnalyticDigitalAmericanEngine builds a AnalyticDigitalAmericanEngine (one touch) or
3130-
AnalyticDigitalAmericanKOEngine (no touch). A sample configuration is shown in listing
3131-
\ref{lst:peconfig_FxTouchOption_GarmanKohlhagen_AnalyticDigitalAmericanEngine}
3132-
3133-
The parameters have the following meaning:
3134-
3135-
\begin{itemize}
3136-
\item SensitivityTemplate [optional]: the sensitivity template to use
3137-
\end{itemize}
3138-
3139-
\begin{longlisting}
3140-
\begin{minted}[fontsize=\footnotesize]{xml}
3141-
<Product type="FxTouchOption">
3142-
<Model>GarmanKohlhagen</Model>
3143-
<ModelParameters/>
3144-
<Engine>AnalyticDigitalAmericanEngine</Engine>
3145-
<EngineParameters>
3146-
<Parameter name="SensitivityTemplate">FX_Analytical</Parameter>
3147-
</EngineParameters>
3148-
</Product>
3149-
\end{minted}
3150-
\caption{Configuration for Product , Model , Engine }
3151-
\label{lst:peconfig_FxTouchOption_GarmanKohlhagen_AnalyticDigitalAmericanEngine}
3152-
\end{longlisting}
3153-
31543270
%--------------------------------------------------------
31553271
\subsubsection{Product Type: FxDoubleTouchOption}
31563272
%--------------------------------------------------------
@@ -3172,10 +3288,10 @@ \subsubsection{Product Type: FxDoubleTouchOption}
31723288

31733289
\begin{longlisting}
31743290
\begin{minted}[fontsize=\footnotesize]{xml}
3175-
<Product type="FxDoubleBarrierOption">
3291+
<Product type="FxDoubleTouchOption">
31763292
<Model>GarmanKohlhagen</Model>
31773293
<ModelParameters/>
3178-
<Engine>AnalyticDoubleBarrierEngine</Engine>
3294+
<Engine>AnalyticDoubleBarrierBinaryEngine</Engine>
31793295
<EngineParameters>
31803296
<Parameter name="SensitivityTemplate">FX_Analytical</Parameter>
31813297
</EngineParameters>

0 commit comments

Comments
 (0)