optionVanna.hpp
Go to the documentation of this file.
29 OptionVanna(SmartPointer<OptionGreeks> input, double hs, double hv, std::string risk_name = "Vanna"):
double hs_
Increment used in differencing scheme for spot direction.
Definition: optionVanna.hpp:39
std::map< std::string, double > getRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
returns the PV and Greek parameter
Definition: optionVanna.cpp:66
OptionVanna(SmartPointer< OptionGreeks > input, double hs, double hv, std::string risk_name="Vanna")
Constructor.
Definition: optionVanna.hpp:29
Definition: cadHoliday.cpp:3
Interface of option Greeks decorating classes.
GreeksIntermediateResults calculateRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
calculates the option's Vanna
Definition: optionVanna.cpp:11
OptionVanna * clone() const
Virtual copy constructor.
Definition: optionVanna.cpp:74
Data structure holding the PV and Greeks.
Definition: optionGreeks.hpp:23
File contains small mathematical classes and functions.
std::string risk_name_
Risk name that will be used as key for result map. Default name is Vanna.
Definition: optionVanna.hpp:43
Interface for classes decorating Option Greeks.
Definition: optionGreeksDecorator.hpp:15
double hv_
Increment used in differencing scheme for volatility direction.
Definition: optionVanna.hpp:42