-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance metrics calculations and improve data handling in metrics.py
- Introduced new functions for calculating various financial metrics including Sharpe ratio, Sortino ratio, Calmar ratio, and others, enhancing the analytical capabilities of the module. - Refactored existing calculations to utilize a helper function for safe data conversion, improving robustness against NaN values. - Removed unused imports and streamlined the code for better readability and maintainability. - These changes significantly improve the functionality and reliability of the metrics calculations in the trading strategy.
- Loading branch information
Showing
1 changed file
with
263 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters