Attached is a simple algo that ranks stocks by their EV to EBITDA which reconstructs a problem I'm having with another algo. Everything works as intended, however when I go to backtest this with the start date January 3rd 2005 or earlier, I get the error:
Something went wrong. Sorry for the inconvenience. Try using the built-in debugger to analyze your code. If you would like help, send us an email.
Upon using the debugger, it looks like the algo dies right at the end of initialize. It makes it to line 35, records line 36, then does nothing. Any idea whats going on here?