From 10c3169f795b1df9fdb4978187c9cc2fc8883aee Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 21 May 2025 23:23:58 +0200 Subject: [PATCH] perf(qav3): stricter momentum checks at pivot labeling 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/Utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py index 278c059..7b18995 100644 --- a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py +++ b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py @@ -943,8 +943,8 @@ def zigzag( def calculate_min_slope_strength( pos: int, - min_strength: float = 1.0, - max_strength: float = 1.5, + min_strength: float = 1.2, + max_strength: float = 1.6, ) -> float: start = max(0, pos - natr_period) end = min(pos + 1, n) diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 9400462..960233d 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -432,8 +432,8 @@ def zigzag( def calculate_min_slope_strength( pos: int, - min_strength: float = 1.0, - max_strength: float = 1.5, + min_strength: float = 1.2, + max_strength: float = 1.6, ) -> float: start = max(0, pos - natr_period) end = min(pos + 1, n) -- 2.43.0