This commit is contained in:
Janne Sinivirta
2017-12-26 09:59:38 +02:00
parent ae0a1436e2
commit 7b0beb0afa
3 changed files with 10 additions and 18 deletions

View File

@@ -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
)
)