Trying to exit selected ETF's when the S&P500 (SPY) moves below its 30 day moving average.  Also, would like to NOT buy the ETF's if the S&P500 (SPY) is below the 30 day moving average on the first trading day of the month.

In my backtest I don't end up ever buying anything.  So, any suggestions on the SPY indicator idea?

Appreciate your insights!