Skip to content

Implement update_break_even_points Method in BreakEvenable Trait #127

@joaquinbejar

Description

@joaquinbejar

Description

Implement the update_break_even_points method in the BreakEvenable trait to ensure all strategies correctly compute and update their break-even points. This method should be added to all strategies that implement the BreakEvenable trait and should ensure accurate calculations under various market conditions.


Tasks

Implementation:

  • Define the update_break_even_points method in the BreakEvenable trait.
  • Implement the method for all existing strategies that use BreakEvenable
  • Ensure proper integration and correctness of calculations.

Testing:

  • Create unit tests for update_break_even_points.
  • Validate the method against different market conditions.
  • Include edge cases such as:
    • Low and high volatility scenarios.
    • Near expiration cases.
    • Extreme price movements.

Documentation:

  • Document the update_break_even_points method in the BreakEvenable trait.
  • Provide implementation details in strategy-specific documentation.
  • Add code comments explaining the logic used in the calculations.

Additional Notes

  • Ensure the implementation is efficient and optimized for performance.
  • Maintain consistency with the project's existing trait architecture.
  • Consider discussing with the team if any adjustments are needed to the existing break-even point calculations.

Labels

enhancement, break-even, strategy-update, testing, documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions