]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
docs(qav3): refine code comment
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 18 Mar 2025 13:03:22 +0000 (14:03 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 18 Mar 2025 13:03:22 +0000 (14:03 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/QuickAdapterV3.py

index cfb92e1272d9511646174ddb6e263e27b9cf0c4c..39a028cd68d0530c84ed3ce415ca3c583033a2c0 100644 (file)
@@ -632,7 +632,9 @@ def EWO(
     ma2 = ma_fn(dataframe, timeperiod=ma2_length)
     madiff = ma1 - ma2
     if normalize:
-        madiff = (madiff / dataframe["close"]) * 100  # Optional normalization
+        madiff = (
+            madiff / dataframe["close"]
+        ) * 100  # Optional normalization with close price
     return madiff