From 32103a800877c3e5b40243421ad8636042e585d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 29 Jan 2025 22:31:37 +0100 Subject: [PATCH] refactor: cleanup uneeded intermediate variables 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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index 7508fd7..ee4df1b 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -171,10 +171,11 @@ class QuickAdapterV3(IStrategy): ) dataframe["%-dist_to_zerohist"] = get_distance(0, dataframe["%-macdhist"]) # VWAP - vwap_low, vwap, vwap_high = VWAPB(dataframe, 20, 1) - dataframe["vwap_upperband"] = vwap_high - dataframe["vwap_middleband"] = vwap - dataframe["vwap_lowerband"] = vwap_low + ( + dataframe["vwap_lowerband"], + dataframe["vwap_middleband"], + dataframe["vwap_upperband"], + ) = VWAPB(dataframe, 20, 1) dataframe["%-vwap_width"] = ( (dataframe["vwap_upperband"] - dataframe["vwap_lowerband"]) / dataframe["vwap_middleband"] -- 2.43.0