From 3e3f092f0c0ec41ad1ac094276f8d7d97aec160f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 14 Aug 2025 09:59:07 +0200 Subject: [PATCH] test: reduce ta-lib test accuracy to align with ta-lib 0.6.5 Precision for ta-lib 0.6.x was increased but is lower by 0001 than what was in the freqtrade ta-lib fix https://github.com/TA-Lib/ta-lib/blob/main/src/ta_func/ta_utility.h#L257 This won't be a problem for any normal usdt pair. shitcoins on some exchanges (e.g gate) with 12 zeros before the first significant digit wouldn't have worked today, either. --- tests/test_talib.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_talib.py b/tests/test_talib.py index 97551bec9..81208a67c 100644 --- a/tests/test_talib.py +++ b/tests/test_talib.py @@ -5,11 +5,11 @@ import talib.abstract as ta def test_talib_bollingerbands_near_zero_values(): inputs = pd.DataFrame( [ - {"close": 0.00000010}, - {"close": 0.00000011}, - {"close": 0.00000012}, - {"close": 0.00000013}, - {"close": 0.00000014}, + {"close": 0.000010}, + {"close": 0.000011}, + {"close": 0.000012}, + {"close": 0.000013}, + {"close": 0.000014}, ] ) bollinger = ta.BBANDS(inputs, matype=0, timeperiod=2)