]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
perf(qav3): refine final trade exit conditions
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 7 Aug 2025 20:30:40 +0000 (22:30 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 7 Aug 2025 20:30:40 +0000 (22:30 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/QuickAdapterV3.py

index d6f1c308ce893703ac93794c2e22199831b76636..9dcdb652407b468e57d986ac070ef29ab92f2e7c 100644 (file)
@@ -1152,13 +1152,13 @@ class QuickAdapterV3(IStrategy):
             trade_recent_pnl_acceleration_std,
         ) = self.get_trade_pnl_momentum(trade)
         trade_pnl_momentum_declining = (
-            trade_pnl_velocity < -trade_pnl_velocity_std * 0.025
-            and trade_pnl_acceleration < -trade_pnl_acceleration_std * 0.00625
+            trade_pnl_velocity < -trade_pnl_velocity_std * 0.00375
+            and trade_pnl_acceleration < -trade_pnl_acceleration_std * 0.0009375
         )
         trade_recent_pnl_spiking = (
-            trade_recent_pnl_velocity > trade_recent_pnl_velocity_std * 0.075
+            trade_recent_pnl_velocity > trade_recent_pnl_velocity_std * 0.015
             and trade_recent_pnl_acceleration
-            > trade_recent_pnl_acceleration_std * 0.01875
+            > trade_recent_pnl_acceleration_std * 0.00375
         )
 
         trade_take_profit_price = self.get_take_profit_price(