QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Vanna/Volga barrier option engine. More...
#include <vannavolgabarrierengine.hpp>
Public Member Functions | |
VannaVolgaBarrierEngine (Handle< DeltaVolQuote > atmVol, Handle< DeltaVolQuote > vol25Put, Handle< DeltaVolQuote > vol25Call, Handle< Quote > spotFX, Handle< YieldTermStructure > domesticTS, Handle< YieldTermStructure > foreignTS, bool adaptVanDelta=false, Real bsPriceWithSmile=0.0) | |
void | calculate () const override |
Public Member Functions inherited from GenericEngine< BarrierOption::arguments, BarrierOption::results > | |
PricingEngine::arguments * | getArguments () const override |
const PricingEngine::results * | getResults () const override |
void | reset () override |
void | update () override |
Public Member Functions inherited from PricingEngine | |
~PricingEngine () override=default | |
virtual arguments * | getArguments () const =0 |
virtual const results * | getResults () const =0 |
virtual void | reset ()=0 |
virtual void | calculate () const =0 |
Public Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
Observable & | operator= (const Observable &) |
Observable (Observable &&)=delete | |
Observable & | operator= (Observable &&)=delete |
virtual | ~Observable ()=default |
void | notifyObservers () |
Public Member Functions inherited from Observer | |
Observer ()=default | |
Observer (const Observer &) | |
Observer & | operator= (const Observer &) |
virtual | ~Observer () |
std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
void | registerWithObservables (const ext::shared_ptr< Observer > &) |
Size | unregisterWith (const ext::shared_ptr< Observable > &) |
void | unregisterWithAll () |
virtual void | update ()=0 |
virtual void | deepUpdate () |
Private Attributes | |
const Handle< DeltaVolQuote > | atmVol_ |
const Handle< DeltaVolQuote > | vol25Put_ |
const Handle< DeltaVolQuote > | vol25Call_ |
const Time | T_ |
const Handle< Quote > | spotFX_ |
const Handle< YieldTermStructure > | domesticTS_ |
const Handle< YieldTermStructure > | foreignTS_ |
const bool | adaptVanDelta_ |
const Real | bsPriceWithSmile_ |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
Protected Member Functions inherited from BarrierOption::engine | |
bool | triggered (Real underlying) const |
Protected Attributes inherited from GenericEngine< BarrierOption::arguments, BarrierOption::results > | |
BarrierOption::arguments | arguments_ |
BarrierOption::results | results_ |
Vanna/Volga barrier option engine.
Definition at line 37 of file vannavolgabarrierengine.hpp.
VannaVolgaBarrierEngine | ( | Handle< DeltaVolQuote > | atmVol, |
Handle< DeltaVolQuote > | vol25Put, | ||
Handle< DeltaVolQuote > | vol25Call, | ||
Handle< Quote > | spotFX, | ||
Handle< YieldTermStructure > | domesticTS, | ||
Handle< YieldTermStructure > | foreignTS, | ||
bool | adaptVanDelta = false , |
||
Real | bsPriceWithSmile = 0.0 |
||
) |
Definition at line 37 of file vannavolgabarrierengine.cpp.
|
overridevirtual |
Implements PricingEngine.
Definition at line 67 of file vannavolgabarrierengine.cpp.
|
private |
Definition at line 53 of file vannavolgabarrierengine.hpp.
|
private |
Definition at line 54 of file vannavolgabarrierengine.hpp.
|
private |
Definition at line 55 of file vannavolgabarrierengine.hpp.
|
private |
Definition at line 56 of file vannavolgabarrierengine.hpp.
Definition at line 57 of file vannavolgabarrierengine.hpp.
|
private |
Definition at line 58 of file vannavolgabarrierengine.hpp.
|
private |
Definition at line 59 of file vannavolgabarrierengine.hpp.
|
private |
Definition at line 60 of file vannavolgabarrierengine.hpp.
|
private |
Definition at line 61 of file vannavolgabarrierengine.hpp.