From 9b3b08a2bb678d61de188dc27edcc13f2291ef59 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Tue, 31 May 2022 15:37:38 +0200 Subject: [PATCH] let follower purge old model files --- freqtrade/freqai/freqai_interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index 19aa9ea3c..c8ce1a19a 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -193,6 +193,8 @@ class IFreqaiModel(ABC): if self.follow_mode: # follower needs to load from disk to get any changes made by leader to pair_dict self.data_drawer.load_drawer_from_disk() + if self.freqai_info.get('purge_old_models', False): + self.data_drawer.purge_old_models() (model_filename, trained_timestamp,