up
This commit is contained in:
parent
abe15dc6b5
commit
4ac7aabe06
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user