From: Jérôme Benoit Date: Tue, 18 Mar 2025 13:03:22 +0000 (+0100) Subject: docs(qav3): refine code comment X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b3616a0606b314f885496a35fb0375f44f0b2a67;p=freqai-strategies.git docs(qav3): refine code comment Signed-off-by: Jérôme Benoit --- diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index cfb92e1..39a028c 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -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