From: Jérôme Benoit Date: Sun, 16 Mar 2025 16:52:18 +0000 (+0100) Subject: refactor(qav3): cleanup X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8172ae6b2ac1609ca0bd634364e92f8492b09016;p=freqai-strategies.git refactor(qav3): cleanup Signed-off-by: Jérôme Benoit --- diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index 23453f0..6fbdaf2 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -328,12 +328,13 @@ class QuickAdapterV3(IStrategy): ) pair = str(metadata.get("pair")) - label_window = self.get_label_period_candles(pair) * 2 self.__period_params[pair]["label_period_candles"] = dataframe[ "label_period_candles" ].iloc[-1] + label_window = self.get_label_period_candles(pair) * 2 + dataframe["natr_ratio_labeling_window"] = pta.natr( dataframe["high"], dataframe["low"],