Fix Plot dataframe and plot profit

This commit is contained in:
NewLaptopMSI_Manu
2018-05-13 13:11:30 +02:00
parent 1e119013c8
commit d046b7dd36
3 changed files with 8 additions and 12 deletions

View File

@@ -202,8 +202,8 @@ class Backtesting(object):
# record a tuple of pair, current_profit_percent,
# entry-date, duration
records.append((pair, trade_entry[1],
row.date.strftime('%s'),
row2.date.strftime('%s'),
str(int(row.date.timestamp())),
str(int(row2.date.timestamp())),
index, trade_entry[3]))
# For now export inside backtest(), maybe change so that backtest()
# returns a tuple like: (dataframe, records, logs, etc)