diff --git a/scripts/cron_health_monitor.py b/scripts/cron_health_monitor.py index 3a0c9556..057588c2 100644 --- a/scripts/cron_health_monitor.py +++ b/scripts/cron_health_monitor.py @@ -26,6 +26,7 @@ CRITICAL_JOBS = { "price_monitor": {"max_idle_min": 15}, # 每2分 "MoFin盘前中监控": {"max_idle_min": 90}, # 每25分(盘中) "自选买入区提醒": {"max_idle_min": 90}, # 每30分 + "自选买入区提醒-盘前午间尾盘": {"max_idle_min": 185}, # 每3小时(9/12/15点),允许185分 "宏观风险信号消费": {"max_idle_min": 40}, # 每15分 "重评管道审计": {"max_idle_min": 90}, # 每30分 "全局cron健康监控": {"max_idle_min": 30}, # 每10分 ← 自己 diff --git a/scripts/price_monitor.py b/scripts/price_monitor.py index 58d5705b..d9038445 100644 --- a/scripts/price_monitor.py +++ b/scripts/price_monitor.py @@ -404,14 +404,19 @@ def run_once(round_label=""): if result: timing_signal = result.get("timing_signal", "") action = result.get("action", "") + # 格式化区间描述(止盈区lo=0时美化显示) + if key == "take_profit_zone" and lo == 0: + zone_desc = f"止盈监控(目标{hi:.0f})" + else: + zone_desc = f"操作区间{lo}~{hi}" if "买入" in timing_signal or "加仓" in timing_signal or "止损" in action: rr = result.get("rr_ratio", 0) - msg = f"🔔 {name}({code}) 价{price}→触发操作区间{lo}~{hi},已触发重评|RR={rr}" + msg = f"🔔 {name}({code}) 价{price}→触发{zone_desc},已触发重评|RR={rr}" push_to_xmpp(msg) outputs.append(f" 📨 区间触发重评→已推送Dad: {action}") else: reason = f"重评结果:{timing_signal},不构成操作建议" - msg = f"📋 {name}({code}) 价{price}进入操作区间{lo}~{hi},{reason}" + msg = f"📋 {name}({code}) 价{price}→{zone_desc},{reason}" push_to_xmpp(msg) outputs.append(f" 📨 区间触发→已推送说明: {reason}") except Exception as e: