mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
fix the error logic on previous commit
This commit is contained in:
parent
23c30dbc10
commit
8a501831d6
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user