From 8a501831d6626fd37302d156917bbd935c3d8531 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Fri, 27 May 2022 01:15:55 +0200 Subject: [PATCH] fix the error logic on previous commit --- freqtrade/freqai/data_kitchen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/data_kitchen.py b/freqtrade/freqai/data_kitchen.py index 1089797d1..63420a52b 100644 --- a/freqtrade/freqai/data_kitchen.py +++ b/freqtrade/freqai/data_kitchen.py @@ -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'