fix the error logic on previous commit

This commit is contained in:
robcaulk 2022-05-27 01:15:55 +02:00
parent 23c30dbc10
commit 8a501831d6

View File

@ -60,7 +60,7 @@ class FreqaiDataKitchen:
self.pair = pair
self.svm_model: linear_model.SGDOneClassSVM = None
if not self.live:
if config.get('freqai', {}).get('backtest_period') is not int:
if config.get('freqai', {}).get('backtest_period') < 1:
raise OperationalException('backtest_period < 1,'
'Can only backtest on full day increments'
'backtest_period. Only live/dry mode'