From c303d47f26984626382f15db6c2bd77731dcfcd4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 23 Aug 2023 15:16:14 +0200 Subject: [PATCH] Ensure stop_duration is converted to int closes #9099 --- freqtrade/plugins/protections/iprotection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/plugins/protections/iprotection.py b/freqtrade/plugins/protections/iprotection.py index 8e1589217..6057cbc29 100644 --- a/freqtrade/plugins/protections/iprotection.py +++ b/freqtrade/plugins/protections/iprotection.py @@ -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