fix: divergence阈值冒号被注释吞掉语法错误

This commit is contained in:
xxm
2026-08-26 00:28:22 +08:00
parent 50a206dade
commit 4510ecb3f4
@@ -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",