From 0f0607baecdbbc04378d546239265d2e22c52c02 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 7 Apr 2021 06:52:34 +0200 Subject: [PATCH] Fix rangeestability filter caching issue --- freqtrade/plugins/pairlist/rangestabilityfilter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/plugins/pairlist/rangestabilityfilter.py b/freqtrade/plugins/pairlist/rangestabilityfilter.py index a1430a223..6565e92c1 100644 --- a/freqtrade/plugins/pairlist/rangestabilityfilter.py +++ b/freqtrade/plugins/pairlist/rangestabilityfilter.py @@ -87,8 +87,9 @@ class RangeStabilityFilter(IPairList): :return: True if the pair can stay, false if it should be removed """ # Check symbol in cache - if pair in self._pair_cache: - return self._pair_cache[pair] + cached_res = self._pair_cache.get(pair, None) + if cached_res is not None: + return cached_res result = False if daily_candles is not None and not daily_candles.empty: