]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
perf(qav3): stricter pivot labeling confirmation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 19 May 2025 17:48:48 +0000 (19:48 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 19 May 2025 17:48:48 +0000 (19:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py
quickadapter/user_data/strategies/QuickAdapterV3.py
quickadapter/user_data/strategies/Utils.py

index f0268f2819c45a518dad1020e9e5ef2e87e4ce2e..90d0e4df087c486985e9dce6c2174c113196c467 100644 (file)
@@ -45,7 +45,7 @@ class QuickAdapterRegressorV3(BaseRegressionModel):
     https://github.com/sponsors/robcaulk
     """
 
-    version = "3.7.45"
+    version = "3.7.46"
 
     @cached_property
     def _optuna_config(self) -> dict:
@@ -929,8 +929,8 @@ def zigzag(
 
     def calculate_min_slope_strength(
         pos: int,
-        min_strength: float = 0.5,
-        max_strength: float = 1.5,
+        min_strength: float = 1.0,
+        max_strength: float = 2.0,
     ) -> float:
         start = max(0, pos - natr_period)
         end = min(pos + 1, n)
@@ -1151,7 +1151,7 @@ def label_objective(
     candles_step: int,
 ) -> tuple[float, int]:
     min_label_period_candles: int = round_to_nearest_int(
-        max(fit_live_predictions_candles // 18, 20), candles_step
+        max(fit_live_predictions_candles // 20, 20), candles_step
     )
     max_label_period_candles: int = round_to_nearest_int(
         max(fit_live_predictions_candles // 2, min_label_period_candles),
index 9c58b3a941993556188ddbedebbba5b00314c52c..17ad374d4d1b1b1ca9735b402bd4fa50fd4f0e6b 100644 (file)
@@ -58,7 +58,7 @@ class QuickAdapterV3(IStrategy):
     INTERFACE_VERSION = 3
 
     def version(self) -> str:
-        return "3.3.43"
+        return "3.3.44"
 
     timeframe = "5m"
 
index 871eac0e4468493753e13904a9542bb1f80047db..68e67046555a04d1a7500f4c376d7a40bd1295a0 100644 (file)
@@ -426,8 +426,8 @@ def zigzag(
 
     def calculate_min_slope_strength(
         pos: int,
-        min_strength: float = 0.5,
-        max_strength: float = 1.5,
+        min_strength: float = 1.0,
+        max_strength: float = 2.0,
     ) -> float:
         start = max(0, pos - natr_period)
         end = min(pos + 1, n)