First 8-day win streak for NASDAQ since October

The NASDAQ Composite rose slightly on Thursday, lifted by gains in Amazon and Apple.

The Dow Jones Industrial Average subsided 74.52 points to 25,509.23, with Procter & Gamble slipping 1.2%.

The S&P 500 dipped 4.12 points to 2,853.58.

The NASDAQ gained 3.46 points to 7,891.78, as Amazon rose 0.6% to an all-time high while Apple jumped 0.8%. The index also posted an eight-day winning streak, its longest since October.

Entering Thursday's session, the S&P 500 was just 0.5% away from reaching 2,872.87, a record high set on Jan. 26. The broad index has climbed back to record territory as strong quarterly earnings have largely offset worries about rising trade tensions.

Nearly 90% of S&P 500 companies have reported quarterly results thus far. Of those companies, 76% have reported better-than-expected earnings. Overall, S&P 500 earnings for the second quarter are up more than 24% versus the year-earlier period.

Booking Holdings and Norwegian Cruise Line both reported better-than-expected earnings on Thursday. Shares of Norwegian Cruise Line rose more than 4%, but Booking Holdings fell after issuing a weak third-quarter profit forecast.

Trade tensions have simmered throughout the strong earnings season, however. Beijing announced Wednesday it would counter the most recent round of U.S. tariffs with its own. The Chinese Ministry of Commerce announced a 25% charge on $16 billion worth of U.S. goods. In total, 333 goods have been picked out by China, including vehicles, various types of fuels, recyclables and fiber optical cables.

The producer's price index remained unchanged in July, while economists expected a gain of 0.2%. The report comes as the latest reading of the consumer price index — a key metric for inflation — is set for release on Friday.

Prices for the benchmark for the 10-year U.S. Treasury gained sharply, lowering yields to 2.93% from Wednesday’s 2.97%. Treasury prices and yields move in opposite directions

Oil prices shed 21 cents to $66.73 U.S. a barrel.

Gold prices fell $1.30 to $1,219.70 U.S. an ounce.