removed a few todos

This commit is contained in:
Sam Germain
2021-12-31 06:49:21 -06:00
parent 08b738a5d9
commit 9a220f6cfe
3 changed files with 6 additions and 10 deletions

View File

@@ -36,8 +36,7 @@ class MaxDrawdown(IProtection):
"""
LockReason to use
"""
# TODO-lev: < for shorts?
return (f'{drawdown} > {self._max_allowed_drawdown} in {self.lookback_period_str}, '
return (f'{drawdown} passed {self._max_allowed_drawdown} in {self.lookback_period_str}, '
f'locking for {self.stop_duration_str}.')
def _max_drawdown(self, date_now: datetime) -> ProtectionReturn: