mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
wrapping in parantheses instead of line breaks
This commit is contained in:
parent
70780bb01e
commit
a2618208ef
|
@ -278,9 +278,9 @@ class IStrategy(ABC):
|
|||
else self.stoploss, initial=True)
|
||||
|
||||
# evaluate if the stoploss was hit if stoploss is not on exchange
|
||||
if self.stoploss is not None and \
|
||||
trade.stop_loss >= current_rate and \
|
||||
not self.order_types.get('stoploss_on_exchange'):
|
||||
if ((self.stoploss is not None) and
|
||||
(trade.stop_loss >= current_rate) and
|
||||
(not self.order_types.get('stoploss_on_exchange'))):
|
||||
selltype = SellType.STOP_LOSS
|
||||
# If Trailing stop (and max-rate did move above open rate)
|
||||
if trailing_stop and trade.open_rate != trade.max_rate:
|
||||
|
|
Loading…
Reference in New Issue
Block a user