调整自监测止盈条件 - 从5个网格改为20个网格,保证加仓足够次数后再止盈

This commit is contained in:
zhangkun9038@dingtalk.com 2025-11-28 00:23:48 +08:00
parent f4dee2e78c
commit 2196de16ec

View File

@ -260,7 +260,7 @@ class GridManager:
) )
self.is_completed = False # GridManager 是否完结 self.is_completed = False # GridManager 是否完结
self.completion_reason: Optional[str] = None # 完结原因 (take_profit / stop_loss) self.completion_reason: Optional[str] = None # 完结原因 (take_profit / stop_loss)
self.min_grids_for_exit = 5 # 至少加仓到5个网格才能触发止盈/止损 self.min_grids_for_exit = 20 # 至少加仓到约20个网格才能触发止盈保证按照预与加仓足够次
# ✅ GridManager 不变量:沉求下来就不改了(除非网格范围更新) # ✅ GridManager 不变量:沉求下来就不改了(除非网格范围更新)
# 便于 Redis 序列化保存 # 便于 Redis 序列化保存