Hello, I am currently having problem with my futures algoirthm. It is just a basic buy and sell based on sma crossover. I am only dealing with the s and p 500 mini futures but am just trying to understand the basics with it first before I go onto more complex methods. Also, we are using indicators from SPY and applying it to trade S&P future since it is easier to get this data.

I seem to get runtime errors with different starting dates. Try running it from the beginning  of the year and then try running it more recent. I think the main problems with it are the calendars used between regular US equities and futures. Thank you for the help I appreciate it.