fix(parser): 节标题锚定解析+脏区间清洗+三值RR

- parse_response: 只认行首【买入区间】【综合结论】等节行(原先取首个关键词行,
  命中修改点段落引用的旧脏值→95~99区间反复写回,17只股票受害);
  信号锚定】后首词,防'观望(不建议买入)'误判; 【买入区间】无→显式清空
- save_result: 区间-现价距离门禁(eh<0.5px或el>1.5px→拒写并清空,不再保留原值养脏)
- recompute_rr: 三值RR(rr_low/rr_ratio中/rr_high,分别对应区下沿/中值/上沿入场)
- 迁移: holding_strategies+rr_low/rr_high列; digest显示RR中(低~高); watch API+前端展示
This commit is contained in:
hmo
2026-07-22 22:59:18 +08:00
parent 56e1326569
commit f7f7fe3ca0
4 changed files with 120 additions and 65 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ def get_watch():
SELECT hs.code, hs.name, hs.decision_type, hs.timing_signal,
hs.action, hs.position_advice, hs.tag,
hs.entry_low, hs.entry_high, hs.stop_loss, hs.take_profit,
hs.rr_ratio, hs.full_analysis, hs.reassessed_at,
hs.rr_ratio, hs.rr_low, hs.rr_high, hs.full_analysis, hs.reassessed_at,
lp.price, lp.change_pct,
h.shares, h.position_pct
FROM holding_strategies hs