Wall Street closed mixed Tuesday after weeks of record highs for stocks, as investors digested second-quarter earnings.

The Dow Jones industrial average closed at a record high for the sixth day in a row, with McDonald's contributing the most gains. The blue-chip index had its eighth straight positive session for the first time since March of 2013.