Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
binomialconvertibleengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2005, 2006 Theo Boafo
3 Copyright (C) 2006, 2007 StatPro Italia srl
4 Copyright (C) 2020 Quaternion Risk Managment Ltd
5
6 This file is part of ORE, a free-software/open-source library
7 for transparent pricing and risk analysis - http://opensourcerisk.org
8
9 ORE is free software: you can redistribute it and/or modify it
10 under the terms of the Modified BSD License. You should have received a
11 copy of the license along with this program.
12 The license is also available online at <http://opensourcerisk.org>
13
14 This program is distributed on the basis that it will form a useful
15 contribution to risk analytics and model standardisation, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
20/*! \file qle/pricingengines/binomialconvertibleengine.hpp
21 \brief binomial engine for convertible bonds
22*/
23
24#pragma once
25
29
30#include <ql/instruments/payoffs.hpp>
31#include <ql/processes/blackscholesprocess.hpp>
32#include <ql/termstructures/defaulttermstructure.hpp>
33#include <ql/termstructures/volatility/equityfx/blackconstantvol.hpp>
34#include <ql/termstructures/yield/flatforward.hpp>
35
36namespace QuantExt {
37
38using namespace QuantLib;
39
40//! Binomial Tsiveriotis-Fernandes engine for convertible bonds
41/* \ingroup hybridengines
42
43 \test the correctness of the returned value is tested by
44 checking it against known results in a few corner cases.
45*/
46
48public:
49 BinomialConvertibleEngine(const QuantLib::ext::shared_ptr<GeneralizedBlackScholesProcess>& process,
50 const Handle<YieldTermStructure>& referenceCurve, const Handle<Quote>& creditSpread,
51 const Handle<DefaultProbabilityTermStructure>& defaultCurve,
52 const Handle<Quote>& recoveryRate, Size timeSteps);
53 void calculate() const override;
54
55private:
56 QuantLib::ext::shared_ptr<GeneralizedBlackScholesProcess> process_;
57 Handle<YieldTermStructure> referenceCurve_;
58 Handle<Quote> creditSpread_;
59 Handle<DefaultProbabilityTermStructure> defaultCurve_;
60 Handle<Quote> recoveryRate_;
62};
63
64} // namespace QuantExt
Binomial Tsiveriotis-Fernandes engine for convertible bonds.
Handle< YieldTermStructure > referenceCurve_
QuantLib::ext::shared_ptr< GeneralizedBlackScholesProcess > process_
Handle< DefaultProbabilityTermStructure > defaultCurve_
convertible bond class
discretized convertible
Binomial Tsiveriotis-Fernandes tree model.