From 470d5d84058e0b000e659bfbd11b7a38a31a8c2b Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sun, 18 Sep 2022 17:08:07 +0200 Subject: [PATCH] ensure full new pairlist is in the queue --- freqtrade/freqai/freqai_interface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index 85768fcf8..2cec96059 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -707,6 +707,10 @@ class IFreqaiModel(ABC): for pair in pair_dict_sorted: if pair[0] in current_pairlist: best_queue.appendleft(pair[0]) + for pair in current_pairlist: + if pair not in best_queue: + best_queue.appendleft(pair) + logger.info('Set existing queue from trained timestamps.') return best_queue