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
This commit is contained in:
Jose Hidalgo 2021-04-20 11:50:53 -06:00
parent 2254f65fa7
commit fd110c7d62

View File

@ -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)