mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Minor edits found during review
This commit is contained in:
parent
6623192108
commit
4de0fdbfca
|
@ -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,
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user