Add helper method to calculate protection until

This commit is contained in:
Matthias
2020-11-17 19:43:12 +01:00
parent 47cd856fea
commit 59091ef2b7
6 changed files with 27 additions and 8 deletions

View File

@@ -182,6 +182,7 @@ class FreqtradeBot:
# Evaluate if protections should apply
self.protections.global_stop()
# Then looking for buy opportunities
if self.get_free_open_trades():
self.enter_positions()
@@ -1416,6 +1417,8 @@ class FreqtradeBot:
# 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.wallets.update()
return False