From f3de0dd3eb8d55ef085258073d6506bd887f8cc8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 14 Jan 2021 06:53:40 +0100 Subject: [PATCH] Fix support for protections in hyperopt closes #4208 --- freqtrade/optimize/backtesting.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index a689786ec..6913b2f4b 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -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