The following backtest trades the price crossover of the 252 EMA for SPY. This moving average clearly does not cross the 252 EMA on Feb 9th, yet it still triggered buy + sell orders. Please let me know what keeps going wrong. Thanks in advance for the help!

Author