From 4de0fdbfca2bb461b0c442661a7bc0624760494b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 24 Apr 2022 14:43:30 +0200 Subject: [PATCH] Minor edits found during review --- freqtrade/plugins/protections/max_drawdown_protection.py | 1 - freqtrade/plugins/protections/stoploss_guard.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/plugins/protections/max_drawdown_protection.py b/freqtrade/plugins/protections/max_drawdown_protection.py index d759a23dd..7370b2b43 100644 --- a/freqtrade/plugins/protections/max_drawdown_protection.py +++ b/freqtrade/plugins/protections/max_drawdown_protection.py @@ -67,7 +67,6 @@ class MaxDrawdown(IProtection): f" within {self.lookback_period_str}.", logger.info) until = self.calculate_lock_end(trades, self._stop_duration) - # return True, until, self._reason(drawdown), None return ProtectionReturn( lock=True, until=until, diff --git a/freqtrade/plugins/protections/stoploss_guard.py b/freqtrade/plugins/protections/stoploss_guard.py index 1943513ca..f9fe039d6 100644 --- a/freqtrade/plugins/protections/stoploss_guard.py +++ b/freqtrade/plugins/protections/stoploss_guard.py @@ -51,7 +51,7 @@ class StoplossGuard(IProtection): ExitType.STOPLOSS_ON_EXCHANGE.value) and trade.close_profit and trade.close_profit < 0)] - if self._only_per_side and side: + if self._only_per_side: # Long or short trades only trades = [trade for trade in trades if trade.trade_direction == side]