From fd070e6bbd9c2088d39398dc08d94b7332ce619c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 16 Jun 2025 13:36:57 +0200 Subject: [PATCH] perf(qav3): refine the pivot confirmation slopes threshold MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py | 2 +- quickadapter/user_data/strategies/Utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py index 69af6fd..6f0c72c 100644 --- a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py +++ b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py @@ -1327,7 +1327,7 @@ def zigzag( def calculate_slopes_ok_threshold( pos: int, - min_threshold: float = 0.65, + min_threshold: float = 0.5, max_threshold: float = 0.75, ) -> float: volatility_quantile = calculate_volatility_quantile(pos) diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 4e04ab6..0d91aea 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -456,7 +456,7 @@ def zigzag( def calculate_slopes_ok_threshold( pos: int, - min_threshold: float = 0.65, + min_threshold: float = 0.5, max_threshold: float = 0.75, ) -> float: volatility_quantile = calculate_volatility_quantile(pos) -- 2.43.0