diff --git a/freqtrade/freqai/data_kitchen.py b/freqtrade/freqai/data_kitchen.py index 37df54042..99bd4d6fc 100644 --- a/freqtrade/freqai/data_kitchen.py +++ b/freqtrade/freqai/data_kitchen.py @@ -154,6 +154,11 @@ class FreqaiDataKitchen: if self.live: self.model_filename = self.data_drawer.pair_dict[coin]['model_filename'] self.data_path = Path(self.data_drawer.pair_dict[coin]['data_path']) + if self.freqai_config.get('follow_mode', False): + # follower can be on a different system which is rsynced to the leader: + self.data_path = Path(self.config["user_data_dir"] / + "models" / self.data_path.parts[-2] / + self.data_path.parts[-1]) with open(self.data_path / str(self.model_filename + "_metadata.json"), "r") as fp: self.data = json.load(fp) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index ea48949b3..85d9a526c 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -191,7 +191,7 @@ class IFreqaiModel(ABC): """ if self.follow_mode: - # follower needs to load off disk to get any changes made by leader to pair_dict + # follower needs to load from disk to get any changes made by leader to pair_dict self.data_drawer.load_drawer_from_disk() (model_filename, @@ -201,7 +201,7 @@ class IFreqaiModel(ABC): # if the files do not yet exist, the follower returns null arrays to strategy if self.follow_mode and return_null_array: - logger.info('Returning null array from follower') + logger.info('Returning null array from follower to strategy') self.data_drawer.return_null_values_to_strategy(dataframe, dh) return dh