optionVanna.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_OPTIONVANNA_HPP
2 #define JULIAN_OPTIONVANNA_HPP
3 
6 
7 namespace julian {
26  public:
29  OptionVanna(SmartPointer<OptionGreeks> input, double hs, double hv, std::string risk_name = "Vanna"):
30  OptionGreeksDecorator(input), hs_(hs), hv_(hv), risk_name_(risk_name) {}
31  std::map<std::string,double> getRisks(const SmartPointer<MarketModel>& model,
32  const SmartPointer<PricingEngine>& prizer,
33  const SmartPointer<Option>& option);
35  const SmartPointer<PricingEngine>& prizer,
36  const SmartPointer<Option>& option);
37  OptionVanna* clone() const;
38 
40  private:
41  double hs_ ;
42  double hv_ ;
43  std::string risk_name_;
44  };
45 } // namespace julian
46 
47 #endif
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
Calculates option&#39;s Vanna.
Definition: optionVanna.hpp:25
OptionVanna(SmartPointer< OptionGreeks > input, double hs, double hv, std::string risk_name="Vanna")
Constructor.
Definition: optionVanna.hpp:29
Definition: cadHoliday.cpp:3
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
Interface of option Greeks decorating classes.
GreeksIntermediateResults calculateRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
calculates the option&#39;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