79558516

Date: 2025-04-06 17:35:10
Score: 2
Natty:
Report link
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?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Whitelisted phrase (-2): Can you try
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Sandesha