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:
parent
2254f65fa7
commit
fd110c7d62
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user