Fix support for protections in hyperopt

closes #4208
This commit is contained in:
Matthias 2021-01-14 06:53:40 +01:00
parent d289fe44cb
commit f3de0dd3eb

View File

@ -180,6 +180,7 @@ class Backtesting:
Backtesting setup method - called once for every call to "backtest()".
"""
PairLocks.use_db = False
PairLocks.timeframe = self.config['timeframe']
Trade.use_db = False
if enable_protections:
# Reset persisted data - used for protections only