Add LowProfitPairs only_per_side option

This commit is contained in:
Matthias
2022-05-07 15:24:31 +02:00
parent 26648e54cc
commit f5f599c7f0
4 changed files with 26 additions and 13 deletions

View File

@@ -38,8 +38,8 @@ class StoplossGuard(IProtection):
return (f'{self._trade_limit} stoplosses in {self._lookback_period} min, '
f'locking for {self._stop_duration} min.')
def _stoploss_guard(
self, date_now: datetime, pair: Optional[str], side: str) -> Optional[ProtectionReturn]:
def _stoploss_guard(self, date_now: datetime, pair: Optional[str],
side: LongShort) -> Optional[ProtectionReturn]:
"""
Evaluate recent trades
"""