mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Allow SL refresh only if no filled entry orders.
This commit is contained in:
parent
ec54b47b6e
commit
c27e0a0a1b
|
@ -502,6 +502,7 @@ class LocalTrade():
|
|||
if initial and not (self.stop_loss is None or self.stop_loss == 0):
|
||||
# Don't modify if called with initial and nothing to do
|
||||
return
|
||||
refresh = False if self.nr_of_successful_entries > 0 else refresh
|
||||
|
||||
leverage = self.leverage or 1.0
|
||||
if self.is_short:
|
||||
|
|
Loading…
Reference in New Issue
Block a user