The S&P 500 Index has spent 125 sessions above its 50-day moving average, its longest stretch since 2011.