feat(evaluation): restore versioned strategy tracking tab

This commit is contained in:
hmo
2026-08-11 20:16:06 +00:00
parent 924ccb7968
commit 9d74ca9666
4 changed files with 262 additions and 84 deletions
+9
View File
@@ -773,6 +773,15 @@ def run_once(round_label=""):
# 取消超时定时器(正常完成)
signal.alarm(0)
# ── 策略追踪评估(2026-07-27 老爸:检查推荐是否触发止盈/止损)──
try:
import mofin_db
tracked = mofin_db.check_strategy_outcomes(conn)
if tracked:
print(f" [TRACK] {tracked}条推荐触发止盈/止损", flush=True)
except Exception as e:
print(f" [TRACK] 检查失败: {e}", flush=True)
# 清理进程锁
try:
os.remove("/tmp/price_monitor.lock")