Merge branch 'feat/short' into funding-fee-backtesting

This commit is contained in:
Sam Germain
2021-10-20 08:21:12 -06:00
48 changed files with 1765 additions and 907 deletions

View File

@@ -506,7 +506,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):