From 450953aae8e677a558b905d24c688120b5448b81 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 13 Aug 2025 01:52:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=8B=E5=8A=BF=E5=88=86=E9=AB=98=E4=BA=8E92?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=87=BA=E5=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- freqtrade/templates/freqaiprimer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/templates/freqaiprimer.py b/freqtrade/templates/freqaiprimer.py index 0bab9a79..a7875442 100644 --- a/freqtrade/templates/freqaiprimer.py +++ b/freqtrade/templates/freqaiprimer.py @@ -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) # 中等趋势,至少两个条件满足