Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
intrinsicascotengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2020 Quaternion Risk Managment 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 qle/pricingengines/intrinsicascotengine.hpp
20 \brief intrinsic engine for Ascots
21*/
22
23#pragma once
24
26
27#include <ql/instruments/payoffs.hpp>
28#include <ql/processes/blackscholesprocess.hpp>
29#include <ql/termstructures/defaulttermstructure.hpp>
30#include <ql/termstructures/volatility/equityfx/blackconstantvol.hpp>
31#include <ql/termstructures/yield/flatforward.hpp>
32
33namespace QuantExt {
34
35using namespace QuantLib;
36
37//! Intrinsic engine for Ascots
38/* \ingroup engines
39
40 \test the correctness of the returned value is tested by
41 checking it against known results in a few corner cases.
42*/
43
45public:
46 IntrinsicAscotEngine(const Handle<YieldTermStructure>& discountCurve);
47 void calculate() const override;
48
49private:
50 Handle<YieldTermStructure> discountCurve_;
51
52};
53
54} // namespace QuantExt
Ascot class.
Intrinsic engine for Ascots.
Handle< YieldTermStructure > discountCurve_