From: Jérôme Benoit Date: Wed, 29 Jan 2025 21:31:37 +0000 (+0100) Subject: refactor: cleanup uneeded intermediate variables X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=32103a800877c3e5b40243421ad8636042e585d4;p=freqai-strategies.git refactor: cleanup uneeded intermediate variables Signed-off-by: Jérôme Benoit --- 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"]