All three major U.S. stock indices closed in positive territory, with the Dow Jones Industrial Average gaining 0.5%, the S&P 500 rising 0.6%, and the Nasdaq advancing 0.7%.