mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
fixing pep8 compliance
This commit is contained in:
parent
eb53a796e2
commit
ea6a1c629d
|
@ -118,9 +118,9 @@ def backtest(stake_amount: float, processed: Dict[str, DataFrame],
|
|||
current_profit_percent = trade.calc_profit_percent(rate=row2.close)
|
||||
if (sell_profit_only and current_profit_percent < 0):
|
||||
continue
|
||||
if min_roi_reached(trade, row2.close, row2.date)
|
||||
or (row2.sell == 1 and use_sell_signal)
|
||||
or current_profit_percent <= stoploss:
|
||||
if min_roi_reached(trade, row2.close, row2.date) or \
|
||||
(row2.sell == 1 and use_sell_signal) or \
|
||||
current_profit_percent <= stoploss:
|
||||
current_profit_btc = trade.calc_profit(rate=row2.close)
|
||||
lock_pair_until = row2.Index
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user