US stocks mostly higher on solid retail results

US stocks Tuesday closed mostly higher following some solid retail earnings reports.

At the closing bell, the Dow Jones Industrial Average was down 5.91 (0.04 percent) to 15,004.83.

The broad-based S&P 500 gained 6.51 (0.40 percent) at 1,652.57, while the tech-rich Nasdaq Composite Index rose 24.50 (0.68 percent) to 3,613.59.

All three indices had fallen over the prior four sessions. But analysts cited strong earnings reports Tuesday from Home Depot, Best Buy and others as giving the market "a reason to rally," as Brent Schutte of BMO Private Bank put it.

Additionally, stocks got help from bond yields, which retreated from recent peaks.