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
VannaVolgaDoubleBarrierEngine< DoubleBarrierEngine > Class Template Reference

Vanna Volga double-barrier option engine. More...

#include <vannavolgadoublebarrierengine.hpp>

+ Inheritance diagram for VannaVolgaDoubleBarrierEngine< DoubleBarrierEngine >:
+ Collaboration diagram for VannaVolgaDoubleBarrierEngine< DoubleBarrierEngine >:

Public Member Functions

 VannaVolgaDoubleBarrierEngine (Handle< DeltaVolQuote > atmVol, Handle< DeltaVolQuote > vol25Put, Handle< DeltaVolQuote > vol25Call, Handle< Quote > spotFX, Handle< YieldTermStructure > domesticTS, Handle< YieldTermStructure > foreignTS, const bool adaptVanDelta=false, const Real bsPriceWithSmile=0.0, int series=5)
 
void calculate () const override
 
- Public Member Functions inherited from GenericEngine< DoubleBarrierOption::arguments, DoubleBarrierOption::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_
 
const int series_
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Attributes inherited from GenericEngine< DoubleBarrierOption::arguments, DoubleBarrierOption::results >
DoubleBarrierOption::arguments arguments_
 
DoubleBarrierOption::results results_
 

Detailed Description

template<class DoubleBarrierEngine>
class QuantLib::VannaVolgaDoubleBarrierEngine< DoubleBarrierEngine >

Vanna Volga double-barrier option engine.

Definition at line 48 of file vannavolgadoublebarrierengine.hpp.

Constructor & Destructor Documentation

◆ VannaVolgaDoubleBarrierEngine()

VannaVolgaDoubleBarrierEngine ( Handle< DeltaVolQuote atmVol,
Handle< DeltaVolQuote vol25Put,
Handle< DeltaVolQuote vol25Call,
Handle< Quote spotFX,
Handle< YieldTermStructure domesticTS,
Handle< YieldTermStructure foreignTS,
const bool  adaptVanDelta = false,
const Real  bsPriceWithSmile = 0.0,
int  series = 5 
)

Definition at line 53 of file vannavolgadoublebarrierengine.hpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 88 of file vannavolgadoublebarrierengine.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ atmVol_

const Handle<DeltaVolQuote> atmVol_
private

Definition at line 407 of file vannavolgadoublebarrierengine.hpp.

◆ vol25Put_

const Handle<DeltaVolQuote> vol25Put_
private

Definition at line 408 of file vannavolgadoublebarrierengine.hpp.

◆ vol25Call_

const Handle<DeltaVolQuote> vol25Call_
private

Definition at line 409 of file vannavolgadoublebarrierengine.hpp.

◆ T_

const Time T_
private

Definition at line 410 of file vannavolgadoublebarrierengine.hpp.

◆ spotFX_

const Handle<Quote> spotFX_
private

Definition at line 411 of file vannavolgadoublebarrierengine.hpp.

◆ domesticTS_

const Handle<YieldTermStructure> domesticTS_
private

Definition at line 412 of file vannavolgadoublebarrierengine.hpp.

◆ foreignTS_

const Handle<YieldTermStructure> foreignTS_
private

Definition at line 413 of file vannavolgadoublebarrierengine.hpp.

◆ adaptVanDelta_

const bool adaptVanDelta_
private

Definition at line 414 of file vannavolgadoublebarrierengine.hpp.

◆ bsPriceWithSmile_

const Real bsPriceWithSmile_
private

Definition at line 415 of file vannavolgadoublebarrierengine.hpp.

◆ series_

const int series_
private

Definition at line 416 of file vannavolgadoublebarrierengine.hpp.