From 1ab481501666092b19ef9ecc8c3fbc6299ca8049 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 24 Mar 2025 15:53:09 +0100 Subject: [PATCH] refactor(qav3): cleanup new features namespace 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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index 14b564b..0d6b77d 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -209,19 +209,15 @@ class QuickAdapterV3(IStrategy): dataframe["close"], length=period, ) - dataframe["%-linearreg-angle-period"] = ta.LINEARREG_ANGLE( + dataframe["%-linearreg_angle-period"] = ta.LINEARREG_ANGLE( dataframe, timeperiod=period ) - # dataframe["%-linearreg_angle-period"] = ta.LINEARREG_ANGLE( - # dataframe, timeperiod=period - # ) dataframe["%-atr-period"] = ta.ATR(dataframe, timeperiod=period) dataframe["%-natr-period"] = ta.NATR(dataframe, timeperiod=period) return dataframe def feature_engineering_expand_basic(self, dataframe, **kwargs): - dataframe["%-pct-change"] = dataframe["close"].pct_change() - # dataframe["%-close_pct_change"] = dataframe["close"].pct_change() + dataframe["%-close_pct_change"] = dataframe["close"].pct_change() dataframe["%-raw_volume"] = dataframe["volume"] dataframe["%-obv"] = ta.OBV(dataframe) dataframe["%-ewo"] = ewo( @@ -263,7 +259,7 @@ class QuickAdapterV3(IStrategy): non_zero_range(dataframe["high"], dataframe["low"]) ) dataframe["jaw"], dataframe["teeth"], dataframe["lips"] = alligator( - dataframe, mamode="ema", zero_lag=True + dataframe, zero_lag=True ) dataframe["%-dist_to_jaw"] = get_distance(dataframe["close"], dataframe["jaw"]) dataframe["%-dist_to_teeth"] = get_distance( -- 2.43.0