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):
|
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
|
# Don't modify if called with initial and nothing to do
|
||||||
return
|
return
|
||||||
|
refresh = False if self.nr_of_successful_entries > 0 else refresh
|
||||||
|
|
||||||
leverage = self.leverage or 1.0
|
leverage = self.leverage or 1.0
|
||||||
if self.is_short:
|
if self.is_short:
|
||||||
|
Loading…
Reference in New Issue
Block a user