Discussing the article: "Risk Management (Part 3): Building the Main Class for Risk Management"

 

Check out the new article: Risk Management (Part 3): Building the Main Class for Risk Management.

In this article, we will begin creating a core risk management class that will be key to controlling risks in the system. We will focus on building the foundations, defining the basic structures, variables and functions. In addition, we will implement the necessary methods for setting maximum profit and loss values, thereby laying the foundation for risk management.

In this article, we will create a class that allows us to assign values to losses and profits, laying the foundation for profit calculation and tracking. This represents a key step toward building a robust and functional risk management system.

Risk Management Design and Planning

The following framework outlines a structured plan for designing and planning risk management in our system:

  1. Definitions, Structures, and Enumerations
    The first step is to define the necessary structures and enumerations. These are essential for storing key information, such as cumulative losses and profits, and for facilitating data handling within the system.

  2. Creating the CRiskManagement Class
    Next, we will develop the main class responsible for risk management CRiskManagement. This central class will consolidate all calculations and processes related to risk control, ensuring an organized and efficient implementation.

  3. Basic Functions: Assignment and Retrieval of Values
    We will then implement functions to assign and retrieve values, enabling us to update and query losses and profits. At this stage, we will also define the class constructor and destructor to properly manage memory and data initialization.

  4. Event-Driven Functions
    Finally, we will develop functions triggered at key moments, such as the start of a new day or week. These functions will be useful for recalculating profits, adjusting risk, and reinitializing accumulated variables over certain periods, ensuring proper performance tracking over time.

With this plan in place, we will start building from the ground up.


Author: Niquel Mendoza