From 86c07a66539deef19ada749647992f089c763409 Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Tue, 13 Mar 2018 20:15:36 +0100 Subject: [PATCH] fix backtesting export. fixes the bug introduced in c62356438a60ec40c7e724fa4f0e8dff898751f4 - export is identical to before (exporting the tick-frame on row[4].) --- freqtrade/optimize/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index a0dc8a789..b8da250fe 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -146,7 +146,7 @@ def backtest(args) -> DataFrame: records.append((pair, trade_entry[1], row.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() # returns a tuple like: (dataframe, records, logs, etc) if record and record.find('trades') >= 0: