feat: 策略追踪评估系统(版本化+理论盈亏+浮盈/浮亏+自动SL/TP检测+30s刷新)

This commit is contained in:
hmo
2026-07-27 19:03:05 +08:00
parent 12e3abc57d
commit c572bbc3ef
4 changed files with 305 additions and 82 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")