Skip to content

Commit

Permalink
Update optionGreeksModel.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndskg authored Jan 7, 2024
1 parent 3b0e4fb commit c028faf
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions include/black-scholes-cpp/optionGreeksModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ using namespace std;

class optionGreeksModel : public virtual blackScholesModel, public optionGreeks {
public:
// --------------------------------------------------------------------------------------
// "optionGreeksModel" Class Declarations
// --------------------------------------------------------------------------------------
/*----------------------------------- CONSTRUCTORS ----------------------------------*/
// ------------------------------------------------------------------------------------------------------------
// "optionGreeksModel" Class Declarations
// ------------------------------------------------------------------------------------------------------------
/*---------------------------------------------- CONSTRUCTORS ---------------------------------------------*/

// Default constructor.
optionGreeksModel();
Expand All @@ -31,7 +31,7 @@ class optionGreeksModel : public virtual blackScholesModel, public optionGreeks
double riskFreeRate, double volatility);


/*---------------------------------- KEY MEMBER FUNCTIONS ------------------------------*/
/*--------------------------------------------- KEY MEMBER FUNCTIONS -----------------------------------------*/

// Calculates the number of shares needed to maintain a delta-neutral position --
// determining the appropriate action (i.e. buy or sell) and executing the corresponding
Expand Down Expand Up @@ -89,7 +89,7 @@ class optionGreeksModel : public virtual blackScholesModel, public optionGreeks



/*------------------------------- INTERMEDIATE MEMBER FUNCTIONS ------------------------------*/
/*--------------------------------------- INTERMEDIATE MEMBER FUNCTIONS --------------------------------------*/


// Calculates a new Delta value based on 'd1' using implied volatility as an additional
Expand Down Expand Up @@ -128,7 +128,7 @@ class optionGreeksModel : public virtual blackScholesModel, public optionGreeks
double calculateDeltaAdjWithGammaVega() const;


/*----------------------------------- SETTER METHODS -------------------------------------*/
/*-------------------------------------------- SETTER METHODS ----------------------------------------------*/

// Setter method for the IV-adjusted option price using the Black-Scholes model.

Expand Down Expand Up @@ -200,7 +200,7 @@ class optionGreeksModel : public virtual blackScholesModel, public optionGreeks



/*---------------------------------- GETTER METHODS ----------------------------------*/
/*------------------------------------------- GETTER METHODS -------------------------------------------*/

// Getter method for the IV-adjusted option price using the Black-Scholes model.

Expand Down Expand Up @@ -278,10 +278,10 @@ class optionGreeksModel : public virtual blackScholesModel, public optionGreeks


private:
// ----------------------------------------------------------------------------------------
// "optionGreeks" Member Variables
// ----------------------------------------------------------------------------------------
//*------------------------- adjusted option Greeks variables --------------------------*//
// ------------------------------------------------------------------------------------------------------------
// "optionGreeks" Member Variables
// ------------------------------------------------------------------------------------------------------------
//*--------------------------------- adjusted option Greeks variables --------------------------------------*//
mutable double ivAdjustedDelta_;
mutable double gammaAdjustedDelta_;
mutable double vegaAdjustedDelta_;
Expand Down

0 comments on commit c028faf

Please sign in to comment.