From add377027e0c6c5c38904b052930c0e44c2496a3 Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 16:31:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20entry=5Flow=E7=94=A8stop/0.98=E4=BF=9D?= =?UTF-8?q?=E8=AF=81=E6=AD=A2=E6=8D=9F=E8=B7=9D=E7=A6=BB=E2=89=A52%(14.47?= =?UTF-8?q?=E2=86=9214.77,1.96%=E2=86=922.03%)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/strategy_lifecycle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/profile-scripts/strategy_lifecycle.py b/deploy/profile-scripts/strategy_lifecycle.py index cf70d04b..ed765831 100644 --- a/deploy/profile-scripts/strategy_lifecycle.py +++ b/deploy/profile-scripts/strategy_lifecycle.py @@ -1243,7 +1243,7 @@ def reassess_strategy(code, name, price, cost, shares, current_action, # 新买入:买入区 = 弱支撑附近(不是当前价附近!) # 只在价格跌到弱支撑附近时才推买入 # 2026-08-18 修复:买入区下沿必须锚定止损上方≥2%(14.62买/14.47损=1.03%不可执行) - entry_low = round(max(price * 0.98, (new_stop or 0) * 1.02), 2) if new_stop else round(price * 0.98, 2) + entry_low = round(max(price * 0.98, (new_stop or 0) / 0.98), 2) if new_stop else round(price * 0.98, 2) # stop/0.98=止损距离≥2% entry_high = round(price * 1.02, 2) if max_acceptable_entry and entry_high > max_acceptable_entry: entry_high = round(max_acceptable_entry, 2)