Re: Import CSV into Backtrader
Hi,
I am trying to load 15 minutes data from csv but getting below error.
IndexError: list index out of range
Below is the code.
class Tickstory(btfeed.GenericCSVData):
params = (
('dtformat', '%d-%m-%Y %H:%M'),
('datetime', 0),
('open', 1),
('high', 2),
('low', 3),
('close', 4),
('timeframe', bt.TimeFrame.Minutes)
)
data = Tickstory(dataname='JUBLFOOD_15(1).csv')