validate freqai hyperopt with freqai enabled param

This commit is contained in:
Wagner Costa Santos 2022-09-07 14:42:05 -03:00
parent 972b699105
commit bf3ee51167
1 changed files with 2 additions and 2 deletions

View File

@ -325,9 +325,9 @@ def _validate_pricing_rules(conf: Dict[str, Any]) -> None:
def _validate_freqai_hyperopt(conf: Dict[str, Any]) -> None:
freqaimodel = conf.get('freqaimodel')
freqai_enabled = conf.get('freqai', {}).get('enabled', False)
analyze_per_epoch = conf.get('analyze_per_epoch', False)
if analyze_per_epoch and freqaimodel is not None:
if analyze_per_epoch and freqai_enabled:
raise OperationalException(
'Using analyze-per-epoch parameter is not supported with a FreqAI strategy.')