Skip to content

Commit 5ac8ddc

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "3bf4ed17b4" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "029ed5e9f6" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb"
2 parents 9d9b571 + 029ed5e commit 5ac8ddc

50 files changed

Lines changed: 5303 additions & 6553 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Docs/UserGuide/userguide.tex

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5772,15 +5772,18 @@ \subsubsection{Market}\label{sec:sim_market}
57725772
It should be noted that equity volatilities are taken to be a curve by default. To simulate an equity volatility surface with smile the xml node {\tt <Surface> } must be supplied.
57735773
There are two methods in ORE for equity volatility simulation:
57745774
\begin{itemize}
5775-
\item Simulating ATM volatilities only (and shifting other strikes relative to this using the $T_{0}$ smile). In this case set {\tt <SimulateATMOnly>} to true.
5776-
\item Simulating the full volatility surface. The node {\tt <SimulateATMOnly>} should be omitted or set to false, and explicit moneyness levels for simulation should be provided.
5775+
\item Simulating ATM volatilities only (and shifting other strikes relative to this using the $T_{0}$ smile). In this
5776+
case set {\tt <SimulateATMOnly>} to true and no surface node is given.
5777+
\item Simulating the full volatility surface. The node {\tt <SimulateATMOnly>} should be omitted or set to false, and
5778+
explicit moneyness levels for simulation should be provided.
57775779
\end{itemize}
57785780

57795781
Swaption volatilities are taken to be a surface by default. To simulate a swaption volatility cube with smile the xml node {\tt <Cube> } must be supplied.
57805782
There are two methods in ORE for swaption volatility cube simulation:
57815783
\begin{itemize}
57825784
\item Simulating ATM volatilities only (and shifting other strikes relative to this using the $T_{0}$ smile). In this case set {\tt <SimulateATMOnly>} to true.
5783-
\item Simulating the full volatility cube. The node {\tt <SimulateATMOnly>} should be omitted or set to false, and explicit strike spreads for simulation should be provided.
5785+
\item Simulating the full volatility cube. The node {\tt <SimulateATMOnly>} should be omitted or set to false, and
5786+
explicit strike spreads for simulation should be provided.
57845787
\end{itemize}
57855788

57865789
FX volatilities are taken to be a curve by default. To simulate an FX volatility cube with smile the xml node {\tt <Surface> } must be supplied. The surface node contains the moneyness levels to be simulated.
@@ -5862,8 +5865,8 @@ \subsubsection{Market}\label{sec:sim_market}
58625865
</Currencies>
58635866
<Expiries>6M,1Y,2Y,3Y,5Y,10Y,12Y,15Y,20Y</Expiries>
58645867
<Terms>1Y,2Y,3Y,4Y,5Y,7Y,10Y,15Y,20Y,30Y</Terms>
5868+
<SimulateATMOnly>false</SimulateATMOnly>
58655869
<Cube>
5866-
<SimulateATMOnly>false</SimulateATMOnly>
58675870
<StrikeSpreads>-0.02,-0.01,0.0,0.01,0.02</StrikeSpreads>
58685871
</Cube>
58695872
<!-- Sets a new daycounter for just the EUR swaptionVolatility surface -->
@@ -5896,9 +5899,9 @@ \subsubsection{Market}\label{sec:sim_market}
58965899
<Name>Lufthansa</Name>
58975900
</Names>
58985901
<Expiries>6M,1Y,2Y,3Y,4Y,5Y,7Y,10Y</Expiries>
5902+
<SimulateATMOnly>false</SimulateATMOnly>
58995903
<Surface>
5900-
<SimulateATMOnly>false</SimulateATMOnly><!-- false -->
5901-
<Moneyness>0.1,0.5,1.0,1.5,2.0,3.0</Moneyness><!-- omitted if SimulateATMOnly true -->
5904+
<Moneyness>0.1,0.5,1.0,1.5,2.0,3.0</Moneyness>
59025905
</Surface>
59035906
<TimeExtrapolation>Flat</TimeExtrapolation>
59045907
<StrikeExtrapolation>Flat</StrikeExtrapolation>

Examples/Example_15/ExpectedOutput/scenario.csv

Lines changed: 4423 additions & 4423 deletions
Large diffs are not rendered by default.

Examples/Example_22/Input/simulation_atmOnly.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@
102102
<Name>Lufthansa</Name>
103103
</Names>
104104
<Expiries>6M,1Y,2Y,3Y,4Y,5Y,7Y,10Y</Expiries>
105-
<Surface>
106-
<SimulateATMOnly>true</SimulateATMOnly>
107-
</Surface>
105+
<SimulateATMOnly>true</SimulateATMOnly>
108106
</EquityVolatilities>
109107

110108
<BenchmarkCurves>

Examples/Example_22/Input/simulation_fullSurface.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
<Name>Lufthansa</Name>
107107
</Names>
108108
<Expiries>6M,1Y,2Y,3Y,4Y,5Y,7Y,10Y</Expiries>
109+
<SimulateATMOnly>false</SimulateATMOnly>
109110
<Surface>
110-
<SimulateATMOnly>false</SimulateATMOnly>
111111
<Moneyness>0.5,0.6,0.7,0.8,0.9,0.95,1.0,1.05,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.5,3.0</Moneyness>
112112
</Surface>
113113
</EquityVolatilities>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#TradeId,TradeType,Maturity,MaturityTime,NPV,NpvCurrency,NPV(Base),BaseCurrency,Notional,NotionalCurrency,Notional(Base),NettingSet,CounterParty
2-
CommodityForward_Gold_1Y,CommodityForward,2017-02-05,1.000262,1398.707538,USD,1398.707538,USD,1160593.33,USD,1160593.33,CPTY_A,CPTY_A
2+
CommodityForward_Gold_1Y,CommodityForward,2017-02-05,1.000262,1398.707538,USD,1398.707538,USD,1162000.0,USD,1162000.0,CPTY_A,CPTY_A
33
CommodityForward_Gold_Apr_17,CommodityForward,2017-04-28,1.224920,0.000000,USD,0.000000,USD,580900.00,USD,580900.00,CPTY_A,CPTY_A
4-
CommodityForward_WTI_2Y,CommodityForward,2018-02-05,2.000262,-1669620.658788,USD,-1669620.658788,USD,44308571.43,USD,44308571.43,CPTY_A,CPTY_A
4+
CommodityForward_WTI_2Y,CommodityForward,2018-02-05,2.000262,-1669620.658788,USD,-1669620.658788,USD,46000000.0,USD,46000000.0,CPTY_A,CPTY_A
55
CommodityForward_WTI_Oct_21,CommodityForward,2021-10-31,5.734509,0.000000,USD,0.000000,USD,24875000.00,USD,24875000.00,CPTY_A,CPTY_A
66
CommodityOption_WTI_Oct_21,CommodityOption,2021-10-31,5.734509,2399271.748696,USD,2399271.748696,USD,24875000.00,USD,24875000.00,CPTY_A,CPTY_A
77
CommodityOption_Gold_Apr_17,CommodityOption,2017-04-28,1.224920,-23531.459416,USD,-23531.459416,USD,580900.00,USD,580900.00,CPTY_A,CPTY_A

Examples/Example_40/Input/simulation.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@
129129
<Name>SPX</Name>
130130
</Names>
131131
<Expiries>2W,1M,3M,6M,1Y,2Y,3Y,5Y,10Y,15Y,20Y,30Y</Expiries>
132-
<Surface>
133-
<SimulateATMOnly>true</SimulateATMOnly>
134-
<Moneyness/>
135-
</Surface>
132+
<SimulateATMOnly>true</SimulateATMOnly>
136133
</EquityVolatilities>
137134

138135
<BenchmarkCurves/>

Examples/Example_50/Input/simulation.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@
129129
<Name>SPX</Name>
130130
</Names>
131131
<Expiries>2W,1M,3M,6M,1Y,2Y,3Y,5Y,10Y,15Y,20Y,30Y</Expiries>
132-
<Surface>
133-
<SimulateATMOnly>true</SimulateATMOnly>
134-
<Moneyness/>
135-
</Surface>
132+
<SimulateATMOnly>true</SimulateATMOnly>
136133
</EquityVolatilities>
137134

138135
<BenchmarkCurves/>

0 commit comments

Comments
 (0)