15 Commits

Author SHA1 Message Date
Simon Moisy
f7f0fc6dd5 Cleanup 2025-05-17 14:48:30 +08:00
Simon Moisy
e4ded694b1 Update .gitignore to exclude PNG files from version control 2025-05-17 14:48:13 +08:00
Simon Moisy
fa12bcb61a Update .gitignore to exclude CSV files from version control 2025-05-17 14:47:51 +08:00
Simon Moisy
125d4f7d52 Add BacktestCharts class for visualizing backtest results and update main.py for enhanced data processing
- Introduced BacktestCharts class in charts.py to plot profit ratio vs stop loss and average trade vs stop loss for different timeframes.
- Updated main.py to integrate new charting functionality and streamline data processing without monthly splits.
- Enhanced backtesting logic in TrendDetectorSimple to include transaction costs and improved stop loss handling using 1-minute data for accuracy.
- Added functionality to write results to individual CSV files for better organization and analysis.
2025-05-17 13:07:40 +08:00
Simon Moisy
ec8b1a7cf2 Enhance main.py with optimized data loading, logging setup, and concurrent processing for backtesting. Introduce new functions for data handling and results aggregation. Update TrendDetectorSimple to support meta supertrend backtesting and improve SuperTrend calculations with caching and parallel execution. Refactor TrendDetectorMACD for better performance in trend detection. 2025-05-16 02:44:22 +08:00
Simon Moisy
7c4db08b1b Refactor main.py to remove commented-out cycle detection code and streamline trend plotting. Update TrendDetectorSimple by eliminating unnecessary logging statements for improved clarity during trend detection. 2025-05-09 15:24:10 +08:00
Simon Moisy
f316571a3c Update date filtering in main.py and enhance TrendDetectorSimple with SuperTrend calculations and improved plotting functionality. Introduce color configurations for better visualization and streamline trend analysis methods. 2025-05-09 15:17:30 +08:00
Simon Moisy
c7732881c5 Refactor TrendDetectorSimple by removing redundant method definitions for trend detection and plotting, streamlining the code for better readability. 2025-05-09 12:27:40 +08:00
Simon Moisy
b0ffedc6af Update .gitignore to include additional files and modify README header 2025-05-09 12:26:42 +08:00
Simon Moisy
e9bfcd03eb Refactor cycle detection and trend analysis; enhance trend detection with linear regression and moving averages. Update main script for improved data handling and visualization. 2025-05-09 12:26:42 +08:00
cbc6a7493d More analysis WIP 2025-05-08 16:23:25 +08:00
1decd0d0ce Refactor trend detection logic in trend_detector_simple.py by removing the implementation for finding valleys between peaks 2025-05-06 16:22:20 +08:00
e1f1e7f561 Refactor trend detection logic and update date filtering in main.py. Removed width parameter from detect_trends method and enhanced peak detection to include valleys and peaks between consecutive points. 2025-05-06 16:20:43 +08:00
Simon Moisy
0bbe308321 first trend detection WIP 2025-05-06 15:24:36 +08:00
e2cd746dc6 Initial commit 2025-04-14 06:46:26 +00:00