From fd110c7d625fc8b5bc12445fe94998eb1f10eb31 Mon Sep 17 00:00:00 2001 From: Jose Hidalgo Date: Tue, 20 Apr 2021 11:50:53 -0600 Subject: [PATCH] The error that it prints says the contrary to what was evaluated. ex. Trading stopped due to Max Drawdown 0.79 < 0.2 within 48 candles --- freqtrade/plugins/protections/max_drawdown_protection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/plugins/protections/max_drawdown_protection.py b/freqtrade/plugins/protections/max_drawdown_protection.py index d1c6b192d..67e204039 100644 --- a/freqtrade/plugins/protections/max_drawdown_protection.py +++ b/freqtrade/plugins/protections/max_drawdown_protection.py @@ -61,7 +61,7 @@ class MaxDrawdown(IProtection): if drawdown > self._max_allowed_drawdown: self.log_once( - f"Trading stopped due to Max Drawdown {drawdown:.2f} < {self._max_allowed_drawdown}" + f"Trading stopped due to Max Drawdown {drawdown:.2f} > {self._max_allowed_drawdown}" f" within {self.lookback_period_str}.", logger.info) until = self.calculate_lock_end(trades, self._stop_duration)