if condition simplified
This commit is contained in:
parent
643262bc6a
commit
3e40f5c588
@ -278,7 +278,7 @@ 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')
|
||||
|
Loading…
Reference in New Issue
Block a user