From d092502f47e85ed98278b4f2f47ec88dd5a2b1a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 9 Aug 2025 00:54:15 +0200 Subject: [PATCH] fix(qav3): final stage trade exit logic MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/strategies/QuickAdapterV3.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index 9bd66c2..3f5b181 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -1182,9 +1182,12 @@ class QuickAdapterV3(IStrategy): trade, current_rate, trade_take_profit_price ) - trade_exit = trade_take_profit_exit and ( - trade_pnl_momentum_declining or not trade_recent_pnl_spiking + trade_exit = ( + trade_take_profit_exit + and trade_pnl_momentum_declining + and not trade_recent_pnl_spiking ) + if not trade_exit: self.throttle_callback( pair=pair, -- 2.43.0