-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(algo): add backtest_on_all_seen_data method and related enhancem…
…ents - Implemented `backtest_on_all_seen_data` in `Algorithm` to perform comprehensive backtesting on all available data, including detailed logging with `instrument`. - Updated `TestData` to set default accuracy to `0.5` when no trades are present, improving metric reliability. - Enhanced logging in `main.rs` by replacing `eprintln!` with `tracing::error` for better log management. - Adjusted the loop range for `depth` in `run` from `1..75` to `1..60` to optimize performance and reduce unnecessary iterations. - Added `test_algo_on_all_data` in `tests/algorithm.rs` to validate the new backtesting functionality and ensure algorithm reliability. This commit enhances the backtesting capabilities of the algorithm, improves logging practices, and includes necessary tests to maintain code quality.
- Loading branch information
1 parent
af561c5
commit 36c9406
Showing
4 changed files
with
50 additions
and
4 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
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
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
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