Reduce duplicate warning

This commit is contained in:
Matthias 2024-04-18 21:01:48 +02:00
parent 6a570bd82e
commit 0a7ed55ade
2 changed files with 1 additions and 4 deletions

View File

@ -718,9 +718,6 @@ class IFreqaiModel(ABC):
if self.pair_it == self.total_pairs: if self.pair_it == self.total_pairs:
logger.info( logger.info(
f'Total time spent inferencing pairlist {self.inference_time:.2f} seconds') 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.pair_it = 0
self.inference_time = 0 self.inference_time = 0
return return

View File

@ -145,7 +145,7 @@ class FreqtradeBot(LoggingMixin):
logger.warning( logger.warning(
f"Strategy analysis took {duration:.2f}, which is 25% of the timeframe. " f"Strategy analysis took {duration:.2f}, which is 25% of the timeframe. "
"This can lead to delayed orders and missed signals." "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." "or reduce the amount of pairs in the Pairlist."
) )