Allow SL refresh only if no filled entry orders.

This commit is contained in:
eSeR1805 2022-05-14 16:56:56 +03:00
parent ec54b47b6e
commit c27e0a0a1b
No known key found for this signature in database
GPG Key ID: BA53686259B46936
1 changed files with 1 additions and 0 deletions

View File

@ -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: