fix bug with backtestResult

This commit is contained in:
xmatthias 2018-06-10 13:25:16 +02:00
parent 17c0ceec04
commit 322a528c12
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class Backtesting(object):
records.append((pair, trade_entry.profit_percent,
trade_entry.open_time.strftime('%s'),
trade_entry.close_time.strftime('%s'),
index, trade_entry[3]))
index, trade_entry.trade_duration))
else:
# Set lock_pair_until to end of testing period if trade could not be closed
# This happens only if the buy-signal was with the last candle