From b3616a0606b314f885496a35fb0375f44f0b2a67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 18 Mar 2025 14:03:22 +0100 Subject: [PATCH] docs(qav3): refine code comment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/strategies/QuickAdapterV3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.43.0