Ensure stop_duration is converted to int

closes #9099
This commit is contained in:
Matthias
2023-08-23 15:16:14 +02:00
parent 36d99876c5
commit c303d47f26

View File

@@ -42,7 +42,7 @@ class IProtection(LoggingMixin, ABC):
self._stop_duration = (tf_in_min * self._stop_duration_candles)
else:
self._stop_duration_candles = None
self._stop_duration = protection_config.get('stop_duration', 60)
self._stop_duration = int(protection_config.get('stop_duration', 60))
if 'lookback_period_candles' in protection_config:
self._lookback_period_candles = int(protection_config.get('lookback_period_candles', 1))
self._lookback_period = tf_in_min * self._lookback_period_candles