From a95c6841bae9d8cea63650e72be8d5f0e7c91ced Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 10 Mar 2025 18:33:01 +0100 Subject: [PATCH] perf(qav3): use NATR ta-lib-python instead 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, 1 insertion(+), 3 deletions(-) diff --git a/quickadapter/user_data/strategies/QuickAdapterV3.py b/quickadapter/user_data/strategies/QuickAdapterV3.py index 05352d9..4e8d66b 100644 --- a/quickadapter/user_data/strategies/QuickAdapterV3.py +++ b/quickadapter/user_data/strategies/QuickAdapterV3.py @@ -140,9 +140,7 @@ class QuickAdapterV3(IStrategy): dataframe["close"], timeperiod=period ) dataframe["%-atr-period"] = ta.ATR(dataframe, timeperiod=period) - dataframe["%-atr-periodp"] = ( - dataframe["%-atr-period"] / dataframe["close"] * 1000 - ) + dataframe["%-atr-periodp"] = ta.NATR(dataframe, timeperiod=period) return dataframe def feature_engineering_expand_basic(self, dataframe, **kwargs): -- 2.43.0