From: Jérôme Benoit Date: Mon, 19 May 2025 17:48:48 +0000 (+0200) Subject: perf(qav3): stricter pivot labeling confirmation X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a50e4e63c805e0224edfa8617d47ab8d234b73d9;p=freqai-strategies.git perf(qav3): stricter pivot labeling confirmation Signed-off-by: Jérôme Benoit --- 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)