From dce7de4f8ceb3f50518de56db97626ef88ae47ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 6 Apr 2025 12:13:21 +0200 Subject: [PATCH] refactor(qav3): refine typing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/strategies/Utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 9c4fdc5..c34bcf9 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -299,9 +299,8 @@ def alligator( def zigzag( - df: pd.DataFrame, - threshold: float = 0.05, -) -> tuple[list, list, list]: + df: pd.DataFrame, threshold: float = 0.05 +) -> tuple[list[float], list[float], list[int]]: """ Calculate the ZigZag indicator for a OHLCV DataFrame. @@ -387,7 +386,7 @@ def dynamic_zigzag( timeperiod: int = 14, natr: bool = True, ratio: float = 1.0, -) -> tuple[list, list, list]: +) -> tuple[list[float], list[float], list[int]]: """ Calculate the ZigZag indicator for a OHLCV DataFrame with dynamic threshold using ATR/NATR. -- 2.43.0