Always reset fake-databases

Otherwise results may stick around for the next strategy
This commit is contained in:
Matthias 2021-03-08 19:40:29 +01:00
parent 0b81b58d28
commit 4b550dab17

View File

@ -174,10 +174,8 @@ class Backtesting:
PairLocks.use_db = False
PairLocks.timeframe = self.config['timeframe']
Trade.use_db = False
if enable_protections:
# Reset persisted data - used for protections only
PairLocks.reset_locks()
Trade.reset_trades()
PairLocks.reset_locks()
Trade.reset_trades()
def _get_ohlcv_as_lists(self, processed: Dict[str, DataFrame]) -> Dict[str, Tuple]:
"""