if condition simplified
This commit is contained in:
parent
643262bc6a
commit
3e40f5c588
@ -278,7 +278,7 @@ class Exchange(object):
|
|||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
f'The config trailing_only_offset_is_reached need '
|
f'The config trailing_only_offset_is_reached need '
|
||||||
'trailing_stop_positive_offset to be more than 0 in your config')
|
'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(
|
raise OperationalException(
|
||||||
f'The config trailing_stop_positive_offset need '
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user