release: v1.8.0 - backtest engine with batch strategy comparison

- Add backtest section to README with CLI usage and run_all_strategies.py demo
- Update all version numbers to 1.8.0 (pyproject.toml, __init__.py, cli/__init__.py, docs/conf.py)
- Fix turtle_breakout strategy: TAQ returns 3 values (UP, MID, DOWN)
- Add run_all_strategies.py batch comparison script
- Update README intro to highlight backtest feature
- Add backtest to CLI command table and architecture tree

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
GitHub
2026-06-09 20:35:38 +08:00
co-authored by Claude Opus 4.8
parent 70c69c8a66
commit b5b5d0dc5b
10 changed files with 401 additions and 44 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class TurtleStrategy(Strategy):
"""海龟交易法(唐安奇通道突破)策略。"""
def init(self) -> None:
self.upper, self.lower = self.I(MyTT.TAQ, self.data.high, self.data.low, 20)
self.upper, _, self.lower = self.I(MyTT.TAQ, self.data.high, self.data.low, 20)
def next(self) -> None:
cur = self.data.close[0]