]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(qav): refine typing
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 6 Apr 2025 12:21:45 +0000 (14:21 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 6 Apr 2025 12:21:45 +0000 (14:21 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/Utils.py

index c34bcf9eba79e22be9c1bae8d02713a85bd718c8..a4959eed843a04e1a4b65eeecc5f987c8462d2f6 100644 (file)
@@ -300,7 +300,7 @@ def alligator(
 
 def zigzag(
     df: pd.DataFrame, threshold: float = 0.05
-) -> tuple[list[float], list[float], list[int]]:
+) -> tuple[list[int], list[float], list[int]]:
     """
     Calculate the ZigZag indicator for a OHLCV DataFrame.
 
@@ -386,7 +386,7 @@ def dynamic_zigzag(
     timeperiod: int = 14,
     natr: bool = True,
     ratio: float = 1.0,
-) -> tuple[list[float], list[float], list[int]]:
+) -> tuple[list[int], list[float], list[int]]:
     """
     Calculate the ZigZag indicator for a OHLCV DataFrame with dynamic threshold using ATR/NATR.