趋势分高于92禁止出场

This commit is contained in:
Ubuntu 2025-08-13 01:52:41 +08:00
parent 9cfcd71970
commit 450953aae8

View File

@ -562,6 +562,11 @@ class FreqaiPrimer(IStrategy):
)
# 综合卖出条件:根据 trend_score 调整逻辑
#如果趋势得分为100拒绝退出
if trend_score > 92:
logger.info(f"[{pair}] 趋势得分为100拒绝退出")
return dataframe
trend_sell_threshold = 85
if trend_score > trend_sell_threshold:
sell_condition = (cond1 & cond2) | (cond1 & cond3) | (cond2 & cond3) # 中等趋势,至少两个条件满足