cleanups
This commit is contained in:
@@ -111,14 +111,14 @@ def backtest(stake_amount: float, processed: Dict[str, DataFrame],
|
||||
|
||||
if min_roi_reached(trade, row2.close, row2.date) or row2.sell == 1:
|
||||
current_profit_percent = trade.calc_profit_percent(rate=row2.close)
|
||||
current_profit_BTC = trade.calc_profit(rate=row2.close)
|
||||
current_profit_btc = trade.calc_profit(rate=row2.close)
|
||||
lock_pair_until = row2.Index
|
||||
|
||||
trades.append(
|
||||
(
|
||||
pair,
|
||||
current_profit_percent,
|
||||
current_profit_BTC,
|
||||
current_profit_btc,
|
||||
row2.Index - row.Index
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user