半手补整阈值50%→90%,防止现金严重不足却标🛒
修正前:长飞光纤预算60K只有1手112K的一半,却因为 budget > lot_cost*0.5 的规则被凑成1手,标了🛒 修正后:只有预算够90%以上才补整1手 实际影响:长飞光纤现在标⚠️而不是🛒
This commit is contained in:
@@ -343,8 +343,8 @@ def main():
|
||||
budget = min(ideal_budget, max_use_cash, available_cash)
|
||||
lots = int(budget / lot_cost) if lot_cost > 0 else 0
|
||||
|
||||
if lots == 0 and lot_cost > 0 and budget > lot_cost * 0.5:
|
||||
# 预算超过半手 → 至少1手
|
||||
if lots == 0 and lot_cost > 0 and budget > lot_cost * 0.8:
|
||||
# 预算覆盖超过80%的1手金额 → 至少1手(仅差一档)
|
||||
lots = 1
|
||||
|
||||
lot_cost_total = lots * lot_cost
|
||||
|
||||
Reference in New Issue
Block a user