From 2a4d1e2d64df6584b5c54849f33b96e49eb21e60 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sat, 28 May 2022 12:23:26 +0200 Subject: [PATCH] fix bug in setting new timerange for retraining --- freqtrade/freqai/data_kitchen.py | 2 +- freqtrade/freqai/freqai_interface.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/freqai/data_kitchen.py b/freqtrade/freqai/data_kitchen.py index 69a311925..629019549 100644 --- a/freqtrade/freqai/data_kitchen.py +++ b/freqtrade/freqai/data_kitchen.py @@ -681,7 +681,7 @@ class FreqaiDataKitchen: retrain = elapsed_time > self.freqai_config.get('backtest_period') if retrain: trained_timerange.startts = int(time - self.freqai_config.get( - 'backtest_period', 0) * SECONDS_IN_DAY) + 'train_period', 0) * SECONDS_IN_DAY) trained_timerange.stopts = int(time) else: # user passed no live_trained_timerange in config trained_timerange.startts = int(time - self.freqai_config.get('train_period') * diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index 3e737e5e7..75c00988f 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -187,8 +187,7 @@ class IFreqaiModel(ABC): (model_filename, trained_timestamp, coin_first) = self.data_drawer.get_pair_dict_info(metadata) - if self.training_on_separate_thread: - print('debug_here') + if not self.training_on_separate_thread: file_exists = False