Add helper method to calculate protection until
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user