Skip to content

Commit 54c8dea

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "bab762bf7f" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "3110e2d45c" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "73a0129"
2 parents 0cea618 + 3110e2d commit 54c8dea

25 files changed

Lines changed: 1069 additions & 524 deletions

Docs/UserGuide/tradecomponents/scheduledata.tex

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ \subsubsection{Schedule Data (Rules, Dates and Derived)}\label{ss:schedule_data}
3838
<Convention>Following</Convention>
3939
<Tenor>3M</Tenor>
4040
<EndOfMonth>false</EndOfMonth>
41+
<EndOfMOnthConvention>Following</EndOfMOnthConvention>
4142
<Dates>
4243
<Date>2012-01-06</Date>
4344
<Date>2012-04-10</Date>
@@ -129,6 +130,14 @@ \subsubsection{Schedule Data (Rules, Dates and Derived)}\label{ss:schedule_data}
129130

130131
Allowable values: Boolean node, allowing \emph{Y, N, 1, 0, true, false} etc. The full set of allowable values is given in Table \ref{tab:boolean_allowable}. Defaults to \emph{false} if left blank or omitted. Must be set to \emph{false} or omitted if the date generation Rule is set to \emph{CDS} or \emph{CDS2015}.
131132

133+
\item \lstinline!EndOfMonthConvention! [Optional]: Determines the adjustment of the end-of-month schedule dates with regards to the selected calendar.
134+
This field is only used when \lstinline!EndOfMonth! is true. If left blank or omitted, then the default \lstinline!Preceding! convention is applied
135+
(i.e.\ end-of-month dates will never be adjusted over to the beginning of the next month)
136+
137+
Allowable values: See Table \ref{tab:convention} Roll Convention.
138+
139+
Allowable values: Boolean node, allowing \emph{Y, N, 1, 0, true, false} etc. The full set of allowable values is given in Table \ref{tab:boolean_allowable}. Defaults to \emph{false} if left blank or omitted. Must be set to \emph{false} or omitted if the date generation Rule is set to \emph{CDS} or \emph{CDS2015}.
140+
132141
\item \lstinline!FirstDate! [Optional]: Date for initial stub period. For date generation rules \emph{CDS} and \emph{CDS2015}, if given, this
133142
overwrites the first date of the schedule that is otherwise built from IMM dates.
134143

@@ -178,6 +187,10 @@ \subsubsection{Schedule Data (Rules, Dates and Derived)}\label{ss:schedule_data}
178187

179188
Allowable values: Boolean node, allowing \emph{Y, N, 1, 0, true, false} etc. The full set of allowable values is given in Table \ref{tab:boolean_allowable}. Defaults to \emph{false} if left blank or omitted.
180189

190+
\item \lstinline!EndOfMonthConvention! [Optional]: Whenever the \lstinline!EndOfMonth! logic is applied, this is used as the roll convention along with the \lstinline!Calendar!for any date adjustments.
191+
192+
Allowable values: See Table \ref{tab:convention} Roll Convention. Defaults to \emph{Preceding} if omitted.
193+
181194
\item \lstinline!Dates!: This is a sub-sub-node and contains child elements of type
182195
\lstinline!Date!. In this case the schedule dates are determined
183196
directly by the \lstinline!Date! child elements. At least two
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0"?>
2+
<ORE>
3+
<Setup>
4+
<Parameter name="asofDate">2016-02-05</Parameter>
5+
<Parameter name="inputPath">Input</Parameter>
6+
<Parameter name="outputPath">Output</Parameter>
7+
<Parameter name="logFile">log.txt</Parameter>
8+
<Parameter name="logMask">31</Parameter>
9+
<Parameter name="marketDataFile">market.txt</Parameter>
10+
<Parameter name="fixingDataFile">../../Input/fixings_20160205.txt</Parameter>
11+
<Parameter name="implyTodaysFixings">N</Parameter>
12+
<Parameter name="curveConfigFile">../../Input/curveconfig.xml</Parameter>
13+
<Parameter name="conventionsFile">../../Input/conventions.xml</Parameter>
14+
<Parameter name="marketConfigFile">todaysmarket.xml</Parameter>
15+
<Parameter name="pricingEnginesFile">pricingengine.xml</Parameter>
16+
<Parameter name="portfolioFile">portfolio.xml</Parameter>
17+
<Parameter name="observationModel">None</Parameter>
18+
<Parameter name="scriptLibrary">scriptlibrary.xml</Parameter>
19+
<Parameter name="nThreads">1</Parameter>
20+
</Setup>
21+
<Markets>
22+
<Parameter name="lgmcalibration">collateral_inccy</Parameter>
23+
<Parameter name="fxcalibration">xois_eur</Parameter>
24+
<Parameter name="pricing">xois_eur</Parameter>
25+
<Parameter name="simulation">xois_eur</Parameter>
26+
<Parameter name="sensitivity">xois_eur</Parameter>
27+
</Markets>
28+
<Analytics>
29+
<Analytic type="npv">
30+
<Parameter name="active">Y</Parameter>
31+
<Parameter name="baseCurrency">EUR</Parameter>
32+
<Parameter name="outputFileName">npv.csv</Parameter>
33+
</Analytic>
34+
<Analytic type="cashflow">
35+
<Parameter name="active">Y</Parameter>
36+
<Parameter name="outputFileName">flows.csv</Parameter>
37+
</Analytic>
38+
<Analytic type="curves">
39+
<Parameter name="active">N</Parameter>
40+
<Parameter name="configuration">default</Parameter>
41+
<Parameter name="grid">240,1M</Parameter>
42+
<Parameter name="outputFileName">curves.csv</Parameter>
43+
</Analytic>
44+
<Analytic type="simulation">
45+
<Parameter name="active">Y</Parameter>
46+
<Parameter name="amc">Y</Parameter>
47+
<Parameter name="amcCg">Y</Parameter>
48+
<Parameter name="xvaCgBumpSensis">Y</Parameter>
49+
<Parameter name="xvaCgSensitivityConfigFile">xvasensiconfig.xml</Parameter>
50+
<Parameter name="xvaCgUseExternalComputeDevice">Y</Parameter>
51+
<Parameter name="xvaCgExternalDeviceCompatibilityMode">Y</Parameter>
52+
<Parameter name="xvaCgUseDoublePrecisionForExternalCalculation">N</Parameter>
53+
<Parameter name="xvaCgExternalComputeDevice">BasicCpu/Default/Default</Parameter>
54+
<!-- <Parameter name="xvaCgExternalComputeDevice">OpenCL/Apple/Apple M2 Max</Parameter> -->
55+
<Parameter name="amcTradeTypes">Swap</Parameter>
56+
<Parameter name="simulationConfigFile">simulation_gpu.xml</Parameter>
57+
<Parameter name="pricingEnginesFile">pricingengine.xml</Parameter>
58+
<Parameter name="amcPricingEnginesFile">pricingengine_amc.xml</Parameter>
59+
<Parameter name="baseCurrency">EUR</Parameter>
60+
<Parameter name="storeScenarios">N</Parameter>
61+
<Parameter name="cubeFile">cube.csv.gz</Parameter>
62+
<Parameter name="aggregationScenarioDataFileName">scenariodata.csv.gz</Parameter>
63+
<Parameter name="aggregationScenarioDataDump">scenariodata.csv</Parameter>
64+
</Analytic>
65+
</Analytics>
66+
</ORE>
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<?xml version="1.0"?>
2+
<Simulation>
3+
<Parameters>
4+
<Grid>528,2W</Grid>
5+
<Calendar>EUR,USD,GBP,CHF</Calendar>
6+
<Sequence>MersenneTwister</Sequence>
7+
<Scenario>Simple</Scenario>
8+
<Seed>42</Seed>
9+
<Samples>8192</Samples>
10+
<DayCounter>A365F</DayCounter>
11+
</Parameters>
12+
<CrossAssetModel>
13+
<Discretization>Euler</Discretization>
14+
<DomesticCcy>EUR</DomesticCcy>
15+
<Currencies>
16+
<Currency>EUR</Currency>
17+
</Currencies>
18+
<BootstrapTolerance>0.0001</BootstrapTolerance>
19+
<InterestRateModels>
20+
<LGM ccy="default">
21+
<CalibrationType>Bootstrap</CalibrationType>
22+
<Volatility>
23+
<Calibrate>Y</Calibrate>
24+
<VolatilityType>Hagan</VolatilityType>
25+
<ParamType>Piecewise</ParamType>
26+
<TimeGrid>1.0, 2.0, 3.0, 4.0, 5.0, 7.0, 10.0</TimeGrid>
27+
<InitialValue>0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01</InitialValue>
28+
</Volatility>
29+
<Reversion>
30+
<Calibrate>N</Calibrate>
31+
<ReversionType>HullWhite</ReversionType>
32+
<ParamType>Constant</ParamType>
33+
<TimeGrid/>
34+
<InitialValue>0.0</InitialValue>
35+
</Reversion>
36+
<CalibrationSwaptions>
37+
<Expiries> 1Y, 2Y, 3Y, 4Y, 5Y, 6Y, 7Y, 8Y, 9Y, 10Y, 11Y, 12Y, 13Y, 14Y, 15Y, 16Y, 17Y, 18Y, 19Y</Expiries>
38+
<Terms> 19Y, 18Y, 17Y, 16Y, 15Y, 14Y, 13Y, 12Y, 11y, 10Y, 9Y, 8Y, 7Y, 6Y, 5Y, 4Y, 3Y, 2Y, 1Y</Terms>
39+
<Strikes/>
40+
</CalibrationSwaptions>
41+
<ParameterTransformation>
42+
<ShiftHorizon>20.0</ShiftHorizon>
43+
<Scaling>1.0</Scaling>
44+
</ParameterTransformation>
45+
</LGM>
46+
</InterestRateModels>
47+
<ForeignExchangeModels>
48+
<CrossCcyLGM foreignCcy="default">
49+
<DomesticCcy>EUR</DomesticCcy>
50+
<CalibrationType>Bootstrap</CalibrationType>
51+
<Sigma>
52+
<Calibrate>Y</Calibrate>
53+
<ParamType>Piecewise</ParamType>
54+
<TimeGrid>1.0, 2.0, 3.0, 4.0, 5.0, 7.0, 10.0</TimeGrid>
55+
<InitialValue>0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1</InitialValue>
56+
</Sigma>
57+
<CalibrationOptions>
58+
<Expiries>1Y, 2Y, 3Y, 4Y, 5Y, 10Y</Expiries>
59+
<Strikes/>
60+
</CalibrationOptions>
61+
</CrossCcyLGM>
62+
</ForeignExchangeModels>
63+
<InstantaneousCorrelations/>
64+
</CrossAssetModel>
65+
<Market>
66+
<BaseCurrency>EUR</BaseCurrency>
67+
<Currencies>
68+
<Currency>EUR</Currency>
69+
</Currencies>
70+
<YieldCurves>
71+
<Configuration>
72+
<Tenors>2W, 1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 10Y, 15Y, 20Y, 30Y</Tenors>
73+
<Interpolation>LogLinear</Interpolation>
74+
<Extrapolation>Y</Extrapolation>
75+
</Configuration>
76+
</YieldCurves>
77+
<DefaultCurves>
78+
<Names>
79+
<Name>BANK</Name>
80+
</Names>
81+
<Tenors>2W, 1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 10Y, 15Y, 20Y, 30Y</Tenors>
82+
<SimulateSurvivalProbabilities>true</SimulateSurvivalProbabilities>
83+
</DefaultCurves>
84+
<Indices>
85+
<Index>EUR-EURIBOR-6M</Index>
86+
<Index>EUR-EURIBOR-3M</Index>
87+
<Index>EUR-EONIA</Index>
88+
</Indices>
89+
<SwapIndices>
90+
<SwapIndex>
91+
<Name>EUR-CMS-1Y</Name>
92+
<DiscountingIndex>EUR-EONIA</DiscountingIndex>
93+
</SwapIndex>
94+
<SwapIndex>
95+
<Name>EUR-CMS-30Y</Name>
96+
<DiscountingIndex>EUR-EONIA</DiscountingIndex>
97+
</SwapIndex>
98+
</SwapIndices>
99+
<SwaptionVolatilities>
100+
<Simulate>true</Simulate>
101+
<ReactionToTimeDecay>ForwardVariance</ReactionToTimeDecay>
102+
<Currencies>
103+
<Currency>EUR</Currency>
104+
</Currencies>
105+
<Expiries>1Y, 2Y, 3Y, 4Y, 5Y, 7Y, 10Y, 12Y, 15Y, 20Y, 30Y</Expiries>
106+
<Terms>1Y, 2Y, 3Y, 4Y, 5Y, 7Y, 10Y, 12Y, 15Y, 20Y, 30Y</Terms>
107+
<SimulateATMOnly>true</SimulateATMOnly>
108+
<SmileDynamics key="">StickyStrike</SmileDynamics>
109+
</SwaptionVolatilities>
110+
<AggregationScenarioDataCurrencies>
111+
<Currency>EUR</Currency>
112+
</AggregationScenarioDataCurrencies>
113+
<AggregationScenarioDataIndices>
114+
<Index>EUR-EURIBOR-3M</Index>
115+
<Index>EUR-EONIA</Index>
116+
</AggregationScenarioDataIndices>
117+
</Market>
118+
</Simulation>

OREAnalytics/orea/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ app/analytic.cpp
2020
app/analytics/analyticfactory.cpp
2121
app/analytics/imscheduleanalytic.cpp
2222
app/analytics/parconversionanalytic.cpp
23-
app/analytics/pnlexplainanalytic.cpp
24-
app/analytics/pnlanalytic.cpp
2523
app/analytics/parstressconversionanalytic.cpp
24+
app/analytics/pnlanalytic.cpp
25+
app/analytics/pnlexplainanalytic.cpp
2626
app/analytics/pricinganalytic.cpp
2727
app/analytics/scenarioanalytic.cpp
2828
app/analytics/scenariostatisticsanalytic.cpp
@@ -181,9 +181,9 @@ app/analytic.hpp
181181
app/analytics/analyticfactory.hpp
182182
app/analytics/imscheduleanalytic.hpp
183183
app/analytics/parconversionanalytic.hpp
184-
app/analytics/pnlexplainanalytic.hpp
185-
app/analytics/pnlanalytic.hpp
186184
app/analytics/parstressconversionanalytic.hpp
185+
app/analytics/pnlanalytic.hpp
186+
app/analytics/pnlexplainanalytic.hpp
187187
app/analytics/pricinganalytic.hpp
188188
app/analytics/scenarioanalytic.hpp
189189
app/analytics/scenariostatisticsanalytic.hpp

0 commit comments

Comments
 (0)