Always reset fake-databases
Otherwise results may stick around for the next strategy
This commit is contained in:
parent
0b81b58d28
commit
4b550dab17
@ -174,8 +174,6 @@ class Backtesting:
|
|||||||
PairLocks.use_db = False
|
PairLocks.use_db = False
|
||||||
PairLocks.timeframe = self.config['timeframe']
|
PairLocks.timeframe = self.config['timeframe']
|
||||||
Trade.use_db = False
|
Trade.use_db = False
|
||||||
if enable_protections:
|
|
||||||
# Reset persisted data - used for protections only
|
|
||||||
PairLocks.reset_locks()
|
PairLocks.reset_locks()
|
||||||
Trade.reset_trades()
|
Trade.reset_trades()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user