From: Jérôme Benoit Date: Wed, 21 May 2025 21:23:58 +0000 (+0200) Subject: perf(qav3): stricter momentum checks at pivot labeling X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=10c3169f795b1df9fdb4978187c9cc2fc8883aee;p=freqai-strategies.git perf(qav3): stricter momentum checks at pivot labeling Signed-off-by: Jérôme Benoit --- 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)