39#include <ql/math/array.hpp>
40#include <ql/math/matrix.hpp>
48using QuantLib::Matrix;
54 QuantLib::Real
var(QuantLib::Real confidence,
const bool isCall =
true,
55 const std::set<std::pair<std::string, QuantLib::Size>>& tradeIds = {})
override;
58 const std::vector<QuantLib::Real>&
pnls_;
69 const QuantLib::ext::shared_ptr<Portfolio>& portfolio,
70 const std::string& portfolioFilter,
71 const vector<Real>&
p, boost::optional<ore::data::TimePeriod> period,
72 const QuantLib::ext::shared_ptr<HistoricalScenarioGenerator>& hisScenGen =
nullptr,
73 std::unique_ptr<FullRevalArgs> fullRevalArgs =
nullptr,
const bool breakdown =
false);
78 const QuantLib::ext::shared_ptr<MarketRiskGroupBase>& riskGroup,
79 const QuantLib::ext::shared_ptr<TradeGroupBase>& tradeGroup)
override;
82 std::vector<QuantLib::Real>
pnls_;
QuantLib::Real var(QuantLib::Real confidence, const bool isCall=true, const std::set< std::pair< std::string, QuantLib::Size > > &tradeIds={}) override
const std::vector< QuantLib::Real > & pnls_
HistoricalSimulationVarCalculator(const std::vector< QuantLib::Real > &pnls)
HistoricalSimulation VaR Calculator.
std::vector< QuantLib::Real > pnls_
virtual ~HistoricalSimulationVarReport()
void createVarCalculator() override
void handleFullRevalResults(const QuantLib::ext::shared_ptr< MarketRiskReport::Reports > &reports, const QuantLib::ext::shared_ptr< MarketRiskGroupBase > &riskGroup, const QuantLib::ext::shared_ptr< TradeGroupBase > &tradeGroup) override
const std::vector< Real > & p() const
Class for generating portfolio P&Ls based on historical scenarios.
scenario generator that builds from historical shifts
A class to hold Scenario parameters for scenarioSimMarket.
Class for aggregating SensitivityRecords.
A class to hold the parametrisation for building sensitivity scenarios.
Base class for sensitivity record streamer.
Base class for a var calculation.