]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(qav3): return properly zigzag() tuple
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Jun 2025 23:26:45 +0000 (01:26 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Jun 2025 23:26:45 +0000 (01:26 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py
quickadapter/user_data/strategies/Utils.py

index af3870afd4089af625adb712a80b0bdc7988bcb5..ba530657974d28eaabdb802f4bed3703b563e896 100644 (file)
@@ -1233,7 +1233,7 @@ def zigzag(
     max_confirmation_window: int = 6
     n = len(df)
     if df.empty or n < max(natr_period, 2 * max_confirmation_window + 1):
-        return [], [], []
+        return [], [], [], []
 
     natr_values = (ta.NATR(df, timeperiod=natr_period).bfill() / 100.0).to_numpy()
 
index 826cbc7998f807e503952b8bc8fa24fc84d6de37..5912fa3172860696b000143bd1cf585d04c776f6 100644 (file)
@@ -426,7 +426,7 @@ def zigzag(
     max_confirmation_window: int = 6
     n = len(df)
     if df.empty or n < max(natr_period, 2 * max_confirmation_window + 1):
-        return [], [], []
+        return [], [], [], []
 
     natr_values = (ta.NATR(df, timeperiod=natr_period).bfill() / 100.0).to_numpy()