Merge pull request #586 from xmatthias/obj_backtest_pr2

fix backtest --export format
This commit is contained in:
Janne Sinivirta 2018-03-27 12:43:52 +03:00 committed by GitHub
commit 85a81b18a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ class Backtesting(object):
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: