fix backtesting export.

fixes the bug introduced in c62356438a -
export is identical to before (exporting the tick-frame on row[4].)
This commit is contained in:
Matthias Voppichler 2018-03-13 20:15:36 +01:00
parent c4163374d6
commit 86c07a6653

View File

@ -146,7 +146,7 @@ def backtest(args) -> DataFrame:
records.append((pair, trade_entry[1], records.append((pair, trade_entry[1],
row.date.strftime('%s'), row.date.strftime('%s'),
row2.date.strftime('%s'), row2.date.strftime('%s'),
row.date, trade_entry[3])) index, trade_entry[3]))
# For now export inside backtest(), maybe change so that backtest() # For now export inside backtest(), maybe change so that backtest()
# returns a tuple like: (dataframe, records, logs, etc) # returns a tuple like: (dataframe, records, logs, etc)
if record and record.find('trades') >= 0: if record and record.find('trades') >= 0: