This commit is contained in:
zhangkun9038@dingtalk.com 2025-08-30 19:03:04 +08:00
parent c6d4a09730
commit 810c29419a

View File

@ -34,7 +34,15 @@ class FreqaiPrimer(IStrategy):
super().__init__(config) # 调用父类的初始化方法并传递config
# 存储从配置文件加载的默认值
self._trailing_stop_positive_default = 0.004 # 降低默认值以更容易触发跟踪止盈
def bot_loop_start(self, current_time: datetime, **kwargs) -> None:
"""
Called at the start of the bot iteration (one loop).
Override to perform pair-independent tasks.
"""
# 避免调用不存在的方法
pass
@property
def protections(self):
"""