From 80731eac14fa6598b514d2121bb5174e717501a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 22 May 2025 00:04:49 +0200 Subject: [PATCH] perf(qav3): tune pivot momentum validation 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 b48bc16..ef88f88 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.1, - max_strength: float = 1.6, + min_strength: float = 1.025, + max_strength: float = 1.525, ) -> 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 1b07727..707539e 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.1, - max_strength: float = 1.6, + min_strength: float = 1.025, + max_strength: float = 1.525, ) -> float: start = max(0, pos - natr_period) end = min(pos + 1, n) -- 2.43.0