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)