From a50e4e63c805e0224edfa8617d47ab8d234b73d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 19 May 2025 19:48:48 +0200 Subject: [PATCH] perf(qav3): stricter pivot labeling confirmation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../user_data/freqaimodels/QuickAdapterRegressorV3.py | 8 ++++---- quickadapter/user_data/strategies/QuickAdapterV3.py | 2 +- quickadapter/user_data/strategies/Utils.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py index f0268f2..90d0e4d 100644 --- a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py +++ b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py @@ -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), diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index 9c58b3a..17ad374 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -58,7 +58,7 @@ class QuickAdapterV3(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "3.3.43" + return "3.3.44" timeframe = "5m" diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 871eac0..68e6704 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -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) -- 2.43.0