From a98ba5cddbbd1e8ec712811a767bbb3c8f0eddfb Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Tue, 23 Dec 2025 14:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=9C=BA=E7=BD=AE=E4=BF=A1=E5=BA=A6+?= =?UTF-8?q?=E5=85=A5=E5=9C=BA=E7=BD=AE=E4=BF=A1=E5=BA=A6+log+5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- freqtrade/templates/freqaiprimer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/freqtrade/templates/freqaiprimer.py b/freqtrade/templates/freqaiprimer.py index 7348fbba..5fda298e 100644 --- a/freqtrade/templates/freqaiprimer.py +++ b/freqtrade/templates/freqaiprimer.py @@ -878,8 +878,10 @@ class FreqaiPrimer(IStrategy): f"(base={base_threshold:.2f}, trade_age_min={trade_age_minutes:.1f}, current_profit={current_profit:.4f}),出场原因: {exit_reason}" ) except Exception as e: - logger.warning(f"[{pair}] ML 审核官出场检查失败,允许出场: {e}") - return allow_exit + logger.warning(f"[{pair}] ML 审核官出场检查失败,允许出场: {e}") + # 极端模式:彻底不拦截出场信号 + logger.info(f"[{pair}] 极端模式:允许出场(ML 审核官已禁用),出场原因: {exit_reason}") + return True def custom_stoploss(self, pair: str, trade: 'Trade', current_time, current_rate: float, current_profit: float, **kwargs) -> float: