Added short functionality to exchange stoplss methods

This commit is contained in:
Sam Germain
2021-08-21 21:10:03 -06:00
parent 4ac2237937
commit 6ac0ab0233
4 changed files with 35 additions and 32 deletions

View File

@@ -499,7 +499,6 @@ class LocalTrade():
lower_stop = new_loss < self.stop_loss
# stop losses only walk up, never down!,
# TODO-lev
# ? But adding more to a leveraged trade would create a lower liquidation price,
# ? decreasing the minimum stoploss
if (higher_stop and not self.is_short) or (lower_stop and self.is_short):