From 0a6c707511271048b0436324101acee6302c5139 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 25 May 2025 11:13:26 +0200 Subject: [PATCH] perf(qav3): recalibrate pivot labeling momentum interval under low volatility 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 | 4 ++-- quickadapter/user_data/strategies/QuickAdapterV3.py | 6 +++--- quickadapter/user_data/strategies/Utils.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py index 9078f0c..90045ad 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.62" + version = "3.7.63" @cached_property def _optuna_config(self) -> dict: @@ -963,7 +963,7 @@ def zigzag( def calculate_min_slope_strength( pos: int, - min_strength: float = 0.9, + min_strength: float = 0.8, max_strength: float = 1.6, ) -> float: volatility_quantile = calculate_volatility_quantile(pos) diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index f0f8050..3d1bfaf 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -60,7 +60,7 @@ class QuickAdapterV3(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "3.3.64" + return "3.3.65" timeframe = "5m" @@ -356,7 +356,7 @@ class QuickAdapterV3(IStrategy): return self.freqai_info["feature_parameters"].get("label_period_candles", 50) def set_label_period_candles(self, pair: str, label_period_candles: int): - if label_period_candles and isinstance(label_period_candles, int): + if isinstance(label_period_candles, int): self._label_params[pair]["label_period_candles"] = label_period_candles def get_label_natr_ratio(self, pair: str) -> float: @@ -368,7 +368,7 @@ class QuickAdapterV3(IStrategy): ) def set_label_natr_ratio(self, pair: str, label_natr_ratio: float): - if label_natr_ratio and isinstance(label_natr_ratio, float): + if isinstance(label_natr_ratio, float): self._label_params[pair]["label_natr_ratio"] = label_natr_ratio def get_entry_natr_ratio(self, pair: str) -> float: diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index bd90429..a4a1a8e 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -441,7 +441,7 @@ def zigzag( def calculate_min_slope_strength( pos: int, - min_strength: float = 0.9, + min_strength: float = 0.8, max_strength: float = 1.6, ) -> float: volatility_quantile = calculate_volatility_quantile(pos) -- 2.43.0