From: Jérôme Benoit Date: Fri, 8 Aug 2025 22:54:15 +0000 (+0200) Subject: fix(qav3): final stage trade exit logic X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d092502f47e85ed98278b4f2f47ec88dd5a2b1a1;p=freqai-strategies.git fix(qav3): final stage trade exit logic Signed-off-by: Jérôme Benoit --- 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,