I have algo's grabbing price data through data.history and they have started erroring out on all my algo's.
No matter what I change the numbers to, the error just changes to match accordingly.
code - gc_hist = data.history(context.primary_gc, 'price', 35, '1m')
error - IndexError: index 1596 is out of bounds for axis 0 with size 1595
code - gc_hist = data.history(context.primary_gc, 'price', 200, '1m')
error - IndexError: index 1761 is out of bounds for axis 0 with size 1760
The error references the line number of this line of code.
Some error out right away while others run halfway through the backtest and then give error. I don't think its something of my doing because I have had this algo for 3 months without changing it and it ran fine before. Any ideas?