The S&P 500 is nearing all-time highs as stocks have best week of the year