Any idea why this algorithm out of the box only produces 1 buy trade when backtesting?  The fast is never less than the slow moving average, which doesn't make sense when I checked SPY there were some crosses between 15 & 30 day moving averages over the time period.  Does anyone have a simple moving average algorithm that shows more trades?  Just beginning here and would like a working prototype to play with.

Edit: When I copy and past my class into the online portal, it backtests successfully.  What am I missing locally?

Author