From 5a76e972263c0c49b9ff0cc2b175dbc34c8a792e Mon Sep 17 00:00:00 2001 From: entwwwicklung Date: Mon, 22 Aug 2022 02:29:11 +0200 Subject: [PATCH] ignore headers --- coinview/backtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coinview/backtest.py b/coinview/backtest.py index 4ea34ac..8ad4a9b 100644 --- a/coinview/backtest.py +++ b/coinview/backtest.py @@ -19,7 +19,7 @@ def next(self): fromdate = datetime.datetime.strptime('2020-07-01', '%Y-%m-%d') todate = datetime.datetime.strptime('2020-07-12', '%Y-%m-%d') -data = bt.feeds.GenericCSVData(dataname='data/2020_15minutes.csv', dtformat=2, compression=15, timeframe=bt.TimeFrame.Minutes, fromdate=fromdate, todate=todate) +data = bt.feeds.GenericCSVData(dataname='data/2020_15minutes.csv', dtformat=2, compression=15, timeframe=bt.TimeFrame.Minutes, fromdate=fromdate, todate=todate, headers=False) cerebro.adddata(data) @@ -27,4 +27,4 @@ def next(self): cerebro.run() -cerebro.plot() \ No newline at end of file +cerebro.plot()