class MyPandasData(bt.feeds.PandasData):
params = (
('open', 1),
('high', 2),
('low', 3),
('close', 4),
('volume', 5),
)
I doubt the issue is with function cols. Is there any built-in functionality named cols to map columns?
Can you try Params instead of cols?