From e0b448a59708cd1fb8b85622711741a9c77f8603 Mon Sep 17 00:00:00 2001 From: silencesdg Date: Thu, 21 May 2026 20:31:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=A8=E9=87=8D=E7=BD=AE=E6=9E=81?= =?UTF-8?q?=E7=AE=80=E5=8C=96=EF=BC=8C=E5=8F=AA=E7=AD=89=E5=BC=80=E5=B8=82?= =?UTF-8?q?+=E9=87=8D=E5=90=AFEA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/monday_reset.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/monday_reset.py b/scripts/monday_reset.py index d9187f1..382f0b9 100644 --- a/scripts/monday_reset.py +++ b/scripts/monday_reset.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""开市后清峰值 + 重启 EA(不平仓,让持仓自然运行)""" +"""开市后重启 EA(不平仓不清理数据,让持仓自然运行)""" import time, sys, os, subprocess, requests API = "http://192.168.1.5:5555/api" @@ -25,13 +25,7 @@ else: log("❌ 等待超时,市场未开市") sys.exit(1) -# 2. 清峰值数据(让拖尾从新一周的峰值重新开始) -peak_file = os.path.join(PROJECT_DIR, "position_peaks.json") -if os.path.exists(peak_file): - os.remove(peak_file) - log("✅ 峰值数据已清除") - -# 3. 杀掉旧 EA,启动新 EA(新一周用新配置) +# 2. 杀掉旧 EA,启动新 EA subprocess.run(["pkill", "-f", "python.*run/realtime.py"], capture_output=True) time.sleep(2) subprocess.run(["pkill", "-9", "-f", "python.*run/realtime.py"], capture_output=True)