Allow use of --strategy-list with freqai, with warning

This commit is contained in:
paranoidandy
2022-09-22 18:06:16 +01:00
parent 71e6c54ea4
commit 1b87fd5d7a
2 changed files with 13 additions and 11 deletions

View File

@@ -91,8 +91,8 @@ class Backtesting:
if self.config.get('strategy_list'):
if self.config.get('freqai', {}).get('enabled', False):
raise OperationalException(
"You can't use strategy_list and freqai at the same time.")
logger.warning("Using --strategy-list with FreqAI REQUIRES all strategies "
"to have identical populate_any_indicators.")
for strat in list(self.config['strategy_list']):
stratconf = deepcopy(self.config)
stratconf['strategy'] = strat