]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
perf(qav3): fine tune reversal confirmation at trade entry/exit
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 21 Aug 2025 14:40:44 +0000 (16:40 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 21 Aug 2025 14:40:44 +0000 (16:40 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/QuickAdapterV3.py

index 6f470b1b5ecac6e4b04650c3614e166057f889f2..ba8745130b8633f9a694eaa59be5ae608431837f 100644 (file)
@@ -1125,7 +1125,7 @@ class QuickAdapterV3(IStrategy):
         min_natr_ratio_percent: float = 0.00999,
         max_natr_ratio_percent: float = 0.099,
         lookback_period: int = 1,
-        decay_ratio: float = 0.9,
+        decay_ratio: float = 0.5,
     ) -> bool:
         """
         Confirm a reversal using a multi-candle lookback chain.
@@ -1137,7 +1137,7 @@ class QuickAdapterV3(IStrategy):
         - A geometric decay is applied for each lookback step k:
           min_natr_ratio_percent/max_natr_ratio_percent bounds are multiplied
           by (decay_ratio ** k) and clamped to [0, 1] for the threshold computed on candle [-(k+1)].
-          Default decay_ratio=0.9.
+          Default decay_ratio=0.5.
           Set decay_ratio=1.0 to disable decay and keep the current behavior.
         Fallbacks:
         - If thresholds or closes are unavailable for any k, only the current threshold condition is enforced.