Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
mccamfxoptionengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2019 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file mccamfxoptionengine.hpp
20 \brief MC CAM engine for FX Option instrument
21*/
22
23#pragma once
24
26
29
30#include <ql/instruments/vanillaoption.hpp>
31
32namespace QuantExt {
33
35public:
36 // this engine works as QuantLib::AnalyticsEuropeanEngine, so that it is compatible with the ORE FxOption trade
37 // builder, i.e. for a call the foreign amount (1.0) is received, domestic (strike*1.0) is paid
39 const Handle<CrossAssetModel>& model, const Currency& domesticCcy, const Currency& foreignCcy,
40 const Currency& npvCcy, const SequenceType calibrationPathGenerator, const SequenceType pricingPathGenerator,
41 const Size calibrationSamples, const Size pricingSamples, const Size calibrationSeed, const Size pricingSeed,
42 const Size polynomOrder, const LsmBasisSystem::PolynomialType polynomType,
43 const SobolBrownianGenerator::Ordering ordering = SobolBrownianGenerator::Steps,
44 const SobolRsg::DirectionIntegers directionIntegers = SobolRsg::JoeKuoD7,
45 const std::vector<Handle<YieldTermStructure>>& discountCurves = std::vector<Handle<YieldTermStructure>>(),
46 const std::vector<Date>& simulationDates = std::vector<Date>(),
47 const std::vector<Size>& externalModelIndices = std::vector<Size>(), const bool minimalObsDate = true,
48 const RegressorModel regressorModel = RegressorModel::Simple,
49 const Real regressionVarianceCutoff = Null<Real>());
50
51 void calculate() const override;
52 const Handle<CrossAssetModel>& model() const { return model_; }
53
54private:
56};
57
58} // namespace QuantExt
const Handle< CrossAssetModel > & model() const
Handle< CrossAssetModel > model_
cross asset model
base MC engine for multileg (option) instruments
base class for multi path generators