From 0a7ed55adef63651f00ae9169cff3a8e8fb2a385 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 18 Apr 2024 21:01:48 +0200 Subject: [PATCH] Reduce duplicate warning --- freqtrade/freqai/freqai_interface.py | 3 --- freqtrade/freqtradebot.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index 60fae421b..dae97468e 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -718,9 +718,6 @@ class IFreqaiModel(ABC): if self.pair_it == self.total_pairs: logger.info( f'Total time spent inferencing pairlist {self.inference_time:.2f} seconds') - if self.inference_time > 0.25 * self.base_tf_seconds: - logger.warning("Inference took over 25% of the candle time. Reduce pairlist to" - " avoid blinding open trades and degrading performance.") self.pair_it = 0 self.inference_time = 0 return diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 578bb7cd6..70c670000 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -145,7 +145,7 @@ class FreqtradeBot(LoggingMixin): logger.warning( f"Strategy analysis took {duration:.2f}, which is 25% of the timeframe. " "This can lead to delayed orders and missed signals." - "Consider either reducing the amount of work your strategy performs, " + "Consider either reducing the amount of work your strategy performs " "or reduce the amount of pairs in the Pairlist." )