I attempted to write my first custom Indicator. It calculates the average Momentum for a given time-frame. Or, it would if the darn thing worked. Instead, it crashes Lean before it ever initializes.

In the attached Backtest, uncomment the line following, "UNCOMMENT THIS LINE AND IT WILL BREAK." in Main.cs. I would have submitted it as such, but I couldn't even get the Backtest to get past Queuing with the line in there.