fix: 根因3-买入区下沿距止损仅1.03%不可执行→entry_low锚定stop上方≥2%(600262:14.62买/14.47损)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user