Fix lock-loop

This commit is contained in:
Matthias
2020-11-27 17:47:15 +01:00
parent 397a15cb61
commit ad746627b3
2 changed files with 3 additions and 7 deletions

View File

@@ -182,9 +182,6 @@ class FreqtradeBot(LoggingMixin):
# First process current opened trades (positions)
self.exit_positions(trades)
# Evaluate if protections should apply
self.protections.global_stop()
# Then looking for buy opportunities
if self.get_free_open_trades():
self.enter_positions()
@@ -1431,8 +1428,7 @@ class FreqtradeBot(LoggingMixin):
# Updating wallets when order is closed
if not trade.is_open:
self.protections.stop_per_pair(trade.pair)
# Evaluate if protections should apply
# self.protections.global_stop()
self.protections.global_stop()
self.wallets.update()
return False