From 11f889e3260fd767d143eac4502b3edd2dbb476e Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 16:28:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B9=E5=9B=A03-=E4=B9=B0=E5=85=A5?= =?UTF-8?q?=E5=8C=BA=E4=B8=8B=E6=B2=BF=E8=B7=9D=E6=AD=A2=E6=8D=9F=E4=BB=85?= =?UTF-8?q?1.03%=E4=B8=8D=E5=8F=AF=E6=89=A7=E8=A1=8C=E2=86=92entry=5Flow?= =?UTF-8?q?=E9=94=9A=E5=AE=9Astop=E4=B8=8A=E6=96=B9=E2=89=A52%(600262:14.6?= =?UTF-8?q?2=E4=B9=B0/14.47=E6=8D=9F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/strategy_lifecycle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/strategy_lifecycle.py b/deploy/profile-scripts/strategy_lifecycle.py index 92a34bc0..cf70d04b 100644 --- a/deploy/profile-scripts/strategy_lifecycle.py +++ b/deploy/profile-scripts/strategy_lifecycle.py @@ -1242,7 +1242,8 @@ def reassess_strategy(code, name, price, cost, shares, current_action, if is_new_entry: # 新买入:买入区 = 弱支撑附近(不是当前价附近!) # 只在价格跌到弱支撑附近时才推买入 - entry_low = round(price * 0.98, 2) + # 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_high = round(price * 1.02, 2) if max_acceptable_entry and entry_high > max_acceptable_entry: entry_high = round(max_acceptable_entry, 2)