QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
VannaVolgaBarrierEngine Class Reference

Vanna/Volga barrier option engine. More...

#include <vannavolgabarrierengine.hpp>

+ Inheritance diagram for VannaVolgaBarrierEngine:
+ Collaboration diagram for VannaVolgaBarrierEngine:

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::argumentsgetArguments () const override
 
const PricingEngine::resultsgetResults () const override
 
void reset () override
 
void update () override
 
- Public Member Functions inherited from PricingEngine
 ~PricingEngine () override=default
 
virtual argumentsgetArguments () const =0
 
virtual const resultsgetResults () const =0
 
virtual void reset ()=0
 
virtual void calculate () const =0
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
 Observer (const Observer &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (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< DeltaVolQuoteatmVol_
 
const Handle< DeltaVolQuotevol25Put_
 
const Handle< DeltaVolQuotevol25Call_
 
const Time T_
 
const Handle< QuotespotFX_
 
const Handle< YieldTermStructuredomesticTS_
 
const Handle< YieldTermStructureforeignTS_
 
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_
 

Detailed Description

Vanna/Volga barrier option engine.

Definition at line 37 of file vannavolgabarrierengine.hpp.

Constructor & Destructor Documentation

◆ VannaVolgaBarrierEngine()

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.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 67 of file vannavolgabarrierengine.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ atmVol_

const Handle<DeltaVolQuote> atmVol_
private

Definition at line 53 of file vannavolgabarrierengine.hpp.

◆ vol25Put_

const Handle<DeltaVolQuote> vol25Put_
private

Definition at line 54 of file vannavolgabarrierengine.hpp.

◆ vol25Call_

const Handle<DeltaVolQuote> vol25Call_
private

Definition at line 55 of file vannavolgabarrierengine.hpp.

◆ T_

const Time T_
private

Definition at line 56 of file vannavolgabarrierengine.hpp.

◆ spotFX_

const Handle<Quote> spotFX_
private

Definition at line 57 of file vannavolgabarrierengine.hpp.

◆ domesticTS_

const Handle<YieldTermStructure> domesticTS_
private

Definition at line 58 of file vannavolgabarrierengine.hpp.

◆ foreignTS_

const Handle<YieldTermStructure> foreignTS_
private

Definition at line 59 of file vannavolgabarrierengine.hpp.

◆ adaptVanDelta_

const bool adaptVanDelta_
private

Definition at line 60 of file vannavolgabarrierengine.hpp.

◆ bsPriceWithSmile_

const Real bsPriceWithSmile_
private

Definition at line 61 of file vannavolgabarrierengine.hpp.