mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
validate freqai hyperopt with freqai enabled param
This commit is contained in:
parent
972b699105
commit
bf3ee51167
|
@ -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.')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user