diff --git a/scripts/price_monitor.py b/scripts/price_monitor.py index 1eb5118d..7c9a4a88 100644 --- a/scripts/price_monitor.py +++ b/scripts/price_monitor.py @@ -390,7 +390,7 @@ def run_once(round_label=""): if result: timing_signal = result.get("timing_signal", "") action = result.get("action", "") - if "买入" in timing_signal or "加仓" in timing_signal or "止损" in action: + if "买入" in timing_signal or "加仓" in timing_signal or timing_signal in ("卖出","止盈"): buy_lo = d.get("entry_low", 0) buy_hi = d.get("entry_high", 0) rr = result.get("rr_ratio", 0) @@ -427,7 +427,7 @@ def run_once(round_label=""): zone_desc = f"止盈监控(目标{hi:.0f})" else: zone_desc = f"操作区间{lo}~{hi}" - if "买入" in timing_signal or "加仓" in timing_signal or "止损" in action: + if "买入" in timing_signal or "加仓" in timing_signal or timing_signal in ("卖出","止盈"): rr = result.get("rr_ratio", 0) if _can_push(code, key): msg = f"🔔 {name}({code}) 价{price}→触发{zone_desc},已触发重评|RR={rr}"