This commit is contained in:
zhangkun9038@dingtalk.com 2025-07-05 05:02:21 +00:00
parent abe15dc6b5
commit 4ac7aabe06

View File

@ -585,7 +585,7 @@ class FreqaiPrimer(IStrategy):
避免调用 populate_indicators直接使用预计算的指标
返回(bool, str) 表示是否退出及退出原因 None 表示不退出
"""
logger.debug(f"[{pair}] 检查自定义退出,当前盈利: {current_price:.2%}")
logger.debug(f"[{pair}] 检查自定义退出,当前盈利: {current_profit:.2%}")
# 获取最新数据
dataframe = self.dp.get_pair_dataframe(pair=pair, timeframe=self.timeframe)
@ -689,7 +689,7 @@ class FreqaiPrimer(IStrategy):
return True, reason
logger.debug(f"[{pair}] 无自定义退出条件满足")
return None
return None
def custom_exit_price(self, pair: str, trade: Trade,
current_time: datetime, proposed_rate: float,