硬性策略质量门禁 validate_strategy()

新增 STRATEGY_QUALITY_GATES 检查清单(9条红线):
CRITICAL: 止损/止盈存在+>0, 买入区下沿<上沿
HIGH: 止损≤买入区, 买入推荐含RR≥1.5, 港股标currency=HKD
MEDIUM: signal短词, tech_snapshot含技术位

enforce_strategy_quality() 插在写入链的两处:
1. reassess_with_context() return前 → 单只重评必过
2. regenerate_all() for d in decisions: 写DB前 → 批量重评必过

不过的:status=review_needed, signal降级→信号不充分
不会写进DB/JSON,除非修复了CRITICAL问题
This commit is contained in:
知微
2026-07-02 13:46:53 +08:00
parent 04b8a6d4bc
commit 7c0e85af28
32 changed files with 12496 additions and 75159 deletions
+5
View File
@@ -66,6 +66,11 @@
"content": "**XD紫金矿(601899) 现价25.10** | 距止损24.48仅2.5%,上周板块能源金属-6.38%领跌,若工业金属继续承压则开盘可能触发止损。**设预警24.50**",
"report_id": "cron_99c06255590a_2026-06-29_08-37-43"
},
{
"time": "2026-07-02T08:55:30.266659",
"content": "- **紫金矿业(601899)** 25.47 / 止损23.07 — 避险情绪利好黄金,26附近考虑减仓",
"report_id": "cron_99c06255590a_2026-07-02_08-32-48"
},
{
"time": "2026-06-01T10:25:54.419132",
"content": "2. **紫金矿业(601899)** 进入加仓区间29-30,可考虑分批加仓",