From 3e40f5c588a13d9cdac0598e0131ea6f9692e04d Mon Sep 17 00:00:00 2001 From: misagh Date: Tue, 12 Mar 2019 13:09:27 +0100 Subject: [PATCH] if condition simplified --- freqtrade/exchange/exchange.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 96eebecc2..8c4315906 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -278,10 +278,10 @@ class Exchange(object): raise OperationalException( f'The config trailing_only_offset_is_reached need ' 'trailing_stop_positive_offset to be more than 0 in your config') - if tsl_positive > 0 and tsl_offset > 0 and tsl_offset <= tsl_positive: + if tsl_positive > 0 and 0 < tsl_offset <= tsl_positive: raise OperationalException( f'The config trailing_stop_positive_offset need ' - 'to be greater than trailing_stop_positive_offset in your config') + 'to be greater than trailing_stop_positive_offset in your config') def exchange_has(self, endpoint: str) -> bool: """