Merge pull request #586 from xmatthias/obj_backtest_pr2
fix backtest --export format
This commit is contained in:
commit
85a81b18a3
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user