Skip to content

Commit 6aeb5ae

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "3fe4fcf859" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "c11933ca7f" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb"
2 parents 6a85df1 + c11933c commit 6aeb5ae

38 files changed

Lines changed: 1285 additions & 212 deletions

Docs/AMC/amc.tex

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

Docs/AMC/epe_ccyswap.pdf

10.7 KB
Binary file not shown.

Docs/AMC/epe_fxoption.pdf

9.87 KB
Binary file not shown.

Docs/AMC/epe_swap.pdf

11.6 KB
Binary file not shown.

Docs/AMC/epe_swaption.pdf

8.52 KB
Binary file not shown.
File renamed without changes.

Docs/UserGuide/tradecomponents/barrierdata.tex

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ \subsubsection{Barrier Data}
1414
FxTouchOptionData & \emph{American} \\
1515
FxDoubleTouchOptionData & \emph{American} \\
1616
FxDoubleBarrierOptionData & \emph{American} \\
17-
FxKIKOBarrierOptionData & \emph{American}
17+
FxKIKOBarrierOptionData & \emph{American} \\
18+
FxTaRFData & \emph{European} \\
19+
FxAccumulatorData & \emph{European, American} \\
20+
EquityTaRFData & \emph{European} \\
21+
EquityAccumulatorData & \emph{European, American} \\
22+
CommodityAccumulatorData & \emph{European, American} \\
23+
FxGenericBarrierOption & \emph{American} \\
24+
EquityGenericBarrierOption & \emph{American} \\
25+
CommodityGenericBarrierOption & \emph{American}
1826
\end{tabular}
1927
\caption{Supported barrier styles per trade data container}
2028
\label{tab:barrierstyles}
@@ -92,6 +100,9 @@ \subsubsection{Barrier Data}
92100
\item FxDigitalBarrierOptionData
93101
\item FxDoubleBarrierOptionData
94102
\item FxEuropeanBarrierOptionData
103+
\item FxGenericBarrierOptionData
104+
\item EquityGenericBarrierOptionData
105+
\item CommodityGenericBarrierOptionData
95106
\end{itemize}
96107

97108
only. If defined for several ``in'' barriers, the amounts must be identical across all barrier definitions (because the
@@ -101,12 +112,24 @@ \subsubsection{Barrier Data}
101112
Allowable values: Any positive real number. Defaults to zero if omitted. Cannot be left blank.
102113

103114
\item RebateCurrency [Optional]: The currency in which the rebate amount is paid. Defaults to the natural pay currency
104-
of the trade.
115+
of the trade. Deviating currencies are supported by the following trade types only:
116+
117+
\begin{itemize}
118+
\item FxGenericBarrierOptionData
119+
\item EquityGenericBarrierOptionData
120+
\item CommodityGenericBarrierOptionData
121+
\end{itemize}
105122

106123
Allowable Values: See Table \ref{tab:currency} \lstinline!Currency!.
107124

108125
\item RebatePayTime [Optional]: For ``in'' barriers only atExpiry is allowed. For ``out'' barriers, both atExpiry and
109-
atHit is possible. If not given, defaults to ``atExpiry''.
126+
atHit is possible. If not given, defaults to ``atExpiry''. This field is only supported by the following trade types:
127+
128+
\begin{itemize}
129+
\item FxGenericBarrierOptionData
130+
\item EquityGenericBarrierOptionData
131+
\item CommodityGenericBarrierOptionData
132+
\end{itemize}
110133

111134
Allowable Values: \emph{atExpiry}, \emph{atHit}
112135

Docs/UserGuide/tradecomponents/legdatanotionals.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ \subsubsection{Leg Data and Notionals}
5252

5353
Allowable values: See Table \ref{tab:currency} \lstinline!Currency!. When \lstinline!LegType! is \emph{Equity}, Minor Currencies in Table \ref{tab:currency} are also allowable.
5454

55-
\item PaymentCalendar [Optional]: The payment calendar of the leg coupons. The \lstinline!PaymentCalendar! is used in conjuction with the \lstinline!PaymentConvention! and the \lstinline!PaymentLag! to determine the payments dates, unless the \lstinline!PaymentDates! node is used which defines the payment dates explicitly.
55+
\item PaymentCalendar [Optional]: The payment calendar of the leg coupons. The \lstinline!PaymentCalendar! is used in conjunction with the \lstinline!PaymentConvention! and the \lstinline!PaymentLag! to determine the payments dates, unless the \lstinline!PaymentDates! node is used which defines the payment dates explicitly.
5656

5757
Allowable values: See Table \ref{tab:calendar} \lstinline!Calendar!. If left blank or omitted, defaults to the calendar in the \lstinline!ScheduleData! node, unless \lstinline!LegType! is \emph{Floating} and \lstinline!Index! is OIS, in which case this defaults to the index calendar.
5858

@@ -62,7 +62,7 @@ \subsubsection{Leg Data and Notionals}
6262

6363
Allowable values: See Table \ref{tab:convention}.
6464

65-
\item PaymentLag [optional]: The payment lag applies to Fixed legs, Equity legs, and Floating legs with Ibor and OIS indices (but not to BMA/SIFMA indices). \\
65+
\item PaymentLag [optional]: The payment lag applies to Fixed legs, Equity legs, and Floating legs with Ibor and OIS indices (but not to BMA/SIFMA indices), as well as CPI legs and Zero Coupon Fixed legs. \\
6666
PaymentLag is also not supported for CapFloor Floating legs that have Ibor coupons with sub periods (HasSubPeriods = \emph{true}), nor for CapFloor Floating legs with averaged ON coupons (IsAveraged = \emph{true}).
6767

6868
Allowable values: Any valid period, i.e. a non-negative whole number, optionally followed by \emph{D} (days), \emph{W} (weeks), \emph{M} (months),

OREAnalytics/orea/aggregation/dimregressioncalculator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void RegressionDynamicInitialMarginCalculator::build() {
194194
Size mporCalendarDays = cubeInterpretation_->getMporCalendarDays(cube_, j);
195195
Real horizonScaling = sqrt(1.0 * horizonCalendarDays_ / mporCalendarDays);
196196

197-
Real stdevDiff = sqrt(variance(accDiff));
197+
Real stdevDiff = sqrt(boost::accumulators::variance(accDiff));
198198
Real E_OneOverNumeraire =
199199
mean(accOneOverNumeraire); // "re-discount" (the stdev is calculated on non-discounted deltaNPVs)
200200

@@ -388,7 +388,7 @@ map<string, Real> RegressionDynamicInitialMarginCalculator::unscaledCurrentDIM()
388388
acc_OneOverNum(1.0 / numeraire);
389389
}
390390
Real E_OneOverNumeraire = mean(acc_OneOverNum);
391-
Real variance_t0 = variance(acc_delMtm);
391+
Real variance_t0 = boost::accumulators::variance(acc_delMtm);
392392
Real sqrt_t0 = sqrt(variance_t0);
393393
t0dimReg[key] = (sqrt_t0 * confidenceLevel * E_OneOverNumeraire);
394394
std::sort(t0_delMtM_dist.begin(), t0_delMtM_dist.end());

0 commit comments

Comments
 (0)