See chart below. This is a different way of doing this but...
I have circled on 1 day ticks every time that the S&P has touched the 200 day moving average with Orange circles.
I have also measured some of the longest runs that we have not touched the 200 day M/A.
Comment your thoughts.