fix bug with backtestResult
This commit is contained in:
parent
17c0ceec04
commit
322a528c12
@ -226,7 +226,7 @@ class Backtesting(object):
|
|||||||
records.append((pair, trade_entry.profit_percent,
|
records.append((pair, trade_entry.profit_percent,
|
||||||
trade_entry.open_time.strftime('%s'),
|
trade_entry.open_time.strftime('%s'),
|
||||||
trade_entry.close_time.strftime('%s'),
|
trade_entry.close_time.strftime('%s'),
|
||||||
index, trade_entry[3]))
|
index, trade_entry.trade_duration))
|
||||||
else:
|
else:
|
||||||
# Set lock_pair_until to end of testing period if trade could not be closed
|
# 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
|
# This happens only if the buy-signal was with the last candle
|
||||||
|
Loading…
Reference in New Issue
Block a user