Commit Graph

4 Commits

Author SHA1 Message Date
d898ba0fd5 Revert "feat: add HTML report screenshot generation via Playwright"
This reverts commit f370caeff9.
2026-06-07 23:12:21 +08:00
f370caeff9 feat: add HTML report screenshot generation via Playwright
- Add html_report.py module for Playwright-based screenshot generation
- Add generate_html_report() method to SimpleRotationStrategy
- Modify backtest_viewer.html to use window-scoped variables for external injection
- Inject monthly/yearly returns table into screenshot
- Auto-generate HTML report in __main__ after export_results()

Output: simple_rotation_html_report.png with ranking table + monthly returns
2026-06-07 22:43:12 +08:00
8d8fd71149 feat(viewer): sort holdings cards by position weight descending
Display largest position first in the holdings panel for better readability
2026-06-06 22:48:40 +08:00
eb3c82f05b feat(rotation): add position weight to detail JSON and viewer
- Record position_weights in daily_records during backtest run
- Export weight field per held asset in detail JSON
- Display weight percentage in backtest_viewer holdings cards
- Force-add backtest_viewer.html (previously ignored by *.html rule)
2026-06-06 22:39:23 +08:00