From 350a511a9e21718acc89fa053ce51bf553b4591f Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 11:11:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20per=5Fstock=5Freassess=20entry=5Flow/hig?= =?UTF-8?q?h=E4=B8=8Dor=E7=9F=AD=E8=B7=AF=E2=80=94=E2=80=94LLM=E7=BB=990(?= =?UTF-8?q?=E7=A9=BA=E5=8C=BA=E9=97=B4)=E5=B0=B1=E7=94=A80=E6=B8=85?= =?UTF-8?q?=E7=A9=BA,=E4=B8=8D=E5=86=8D=E5=8F=96=E6=97=A7=E8=84=8F?= =?UTF-8?q?=E5=80=BC95/99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/per_stock_reassess.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/profile-scripts/per_stock_reassess.py b/deploy/profile-scripts/per_stock_reassess.py index 2e9e27e4..f67880d3 100644 --- a/deploy/profile-scripts/per_stock_reassess.py +++ b/deploy/profile-scripts/per_stock_reassess.py @@ -54,8 +54,10 @@ def _build_full_analysis(code, entry, result): signal = result.get("timing_signal") or entry.get("timing_signal", "") category = result.get("stock_category") or entry.get("stock_category", "") - el = result.get("entry_low") or entry.get("entry_low", 0) - eh = result.get("entry_high") or entry.get("entry_high", 0) + # 2026-08-18 修复:entry_low/high 不用 or 短路——LLM 显式给(含0空区间)就用 LLM 值 + # 否则 `0 or 95.0` 会把 LLM 的"清空区间"误判为"取旧脏值"(600262 教训:95/99 残留) + el = result.get("entry_low") if result.get("entry_low") is not None else entry.get("entry_low", 0) + eh = result.get("entry_high") if result.get("entry_high") is not None else entry.get("entry_high", 0) sl = result.get("stop_loss") or entry.get("stop_loss", 0) tp = result.get("take_profit") or entry.get("take_profit", 0) rr = result.get("rr_ratio") or entry.get("rr_ratio", 0)