]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(qav3): code formatting
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 May 2025 09:27:58 +0000 (11:27 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 May 2025 09:27:58 +0000 (11:27 +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 f862e9096031b3854e1f3ecbaaef0e7944ea49fc..e5c5f378ef8b5d44ddc856544679e4e8c20db5d4 100644 (file)
@@ -960,7 +960,6 @@ def zigzag(
 
     final_pos = len(df) - 1
     last_pivot_val = pivots_values[-1]
-
     if state == TrendDirection.UP:
         if (
             (last_pivot_val - lows[final_pos]) / last_pivot_val >= thresholds[final_pos]
index 37372a4f93feccd3eed666d54ad5bf559de92113..df34fb3f4864b3777d1266c1dd1c9ae3369295e1 100644 (file)
@@ -419,7 +419,6 @@ def zigzag(
 
     final_pos = len(df) - 1
     last_pivot_val = pivots_values[-1]
-
     if state == TrendDirection.UP:
         if (
             (last_pivot_val - lows[final_pos]) / last_pivot_val >= thresholds[final_pos]