]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
perf(qav3): tune pivot momentum validation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 21 May 2025 22:04:49 +0000 (00:04 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 21 May 2025 22:04:49 +0000 (00:04 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py
quickadapter/user_data/strategies/Utils.py

index b48bc16c343354a4e986b6d2817d973977c88dfd..ef88f88ad61c5c6b6caeb61b3dda123b8174700a 100644 (file)
@@ -943,8 +943,8 @@ def zigzag(
 
     def calculate_min_slope_strength(
         pos: int,
-        min_strength: float = 1.1,
-        max_strength: float = 1.6,
+        min_strength: float = 1.025,
+        max_strength: float = 1.525,
     ) -> float:
         start = max(0, pos - natr_period)
         end = min(pos + 1, n)
index 1b0772705385d961ca8f22bc9061f288c9ea3ae5..707539e729ca0d9848eb69a54f3bb05a385bb2ef 100644 (file)
@@ -432,8 +432,8 @@ def zigzag(
 
     def calculate_min_slope_strength(
         pos: int,
-        min_strength: float = 1.1,
-        max_strength: float = 1.6,
+        min_strength: float = 1.025,
+        max_strength: float = 1.525,
     ) -> float:
         start = max(0, pos - natr_period)
         end = min(pos + 1, n)