feat: 策略复盘闭环 Phase1
- 新增 scripts/strategy_review.py: 遍历所有active策略 - 腾讯API实时价对比止损/止盈/入场点 - 分类: correct/wrong/partial/pending - 失败模式归因: 止损过紧/入场过早/止盈过远等 - 写入 accuracy_stats 表(首条真实数据) - 新增 docs/strategy-review-loop.md: 完整闭环设计文档 - 含失败模式→修复方向映射表 Phase1 结果: 38条策略, 94.7%准确率(19条待定), 1条止损过紧
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ def audit_stocks(conn):
|
||||
def audit_strategies(conn):
|
||||
try:
|
||||
dec = json.loads((WEB_DATA / "decisions.json").read_text())
|
||||
active = [d for d in dec.get("decisions", []) if d.get("status") == "active"]
|
||||
active = [d for d in dec.get("decisions", []) if d.get("status") in ("active", "updated")]
|
||||
stale_count = 0
|
||||
no_stop = 0
|
||||
for d in active:
|
||||
|
||||
Reference in New Issue
Block a user