The stock market rally had a strong week, with the Dow Jones, S&P 500 and Nasdaq composite hitting record highs Friday.