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)