From 4510ecb3f4ef51e234753c345639ef56a1dd6503 Mon Sep 17 00:00:00 2001 From: xxm Date: Wed, 26 Aug 2026 00:28:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20divergence=E9=98=88=E5=80=BC=E5=86=92?= =?UTF-8?q?=E5=8F=B7=E8=A2=AB=E6=B3=A8=E9=87=8A=E5=90=9E=E6=8E=89=E8=AF=AD?= =?UTF-8?q?=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/divergence_detector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/divergence_detector.py b/deploy/profile-scripts/divergence_detector.py index 6408531b..30ca6c81 100644 --- a/deploy/profile-scripts/divergence_detector.py +++ b/deploy/profile-scripts/divergence_detector.py @@ -210,7 +210,8 @@ def detect_divergences(indices, history): if hsi and hscei: hsi_chg = hsi["change_pct"] hscei_chg = hscei["change_pct"] - if hsi_chg < 0 and hscei_chg < hsi_chg: + if hsi_chg < 0 and hscei_chg < hsi_chg and abs(hscei_chg - hsi_chg) >= 0.5: + # 2026-08-25 最小差幅阈值(t_4ae5b9f7: 0.02pct差异误报) # 国企跌得比恒指多 → 外资恐慌性卖出H股 signals.append({ "type": "hk_panic_selling",