Disallow PerformanceFilter for backtesting

closes #4072
This commit is contained in:
Matthias
2020-12-16 19:24:47 +01:00
parent 8441d0f60f
commit 266031a6be
3 changed files with 13 additions and 0 deletions

View File

@@ -102,6 +102,8 @@ class Backtesting:
self.pairlists = PairListManager(self.exchange, self.config)
if 'VolumePairList' in self.pairlists.name_list:
raise OperationalException("VolumePairList not allowed for backtesting.")
if 'PerformanceFilter' in self.pairlists.name_list:
raise OperationalException("PerformanceFilter not allowed for backtesting.")
if len(self.strategylist) > 1 and 'PrecisionFilter' in self.pairlists.name_list:
raise OperationalException(