By Kate Gibson, MarketWatch

NEW YORK (MarketWatch) -- U.S. stocks gained on Tuesday, with the S&P 500 continuing its longest stretch of gains since mid-July, after positive economic data from China and indications that U.S. military action against Syria might be averted.

"The markets are right now breathing a sigh of relief that we're moving closer to a diplomatic solution as opposed to a military solution in Syria," said Darrell Cronk, regional chief investment officer for Wells Fargo Private Bank. "Any military solution would cause some angst" by creating uncertainty as to its scale and duration, Cronk said.

On Tuesday, France said it would submit a Russian-backed proposal to confiscate Syria's chemical arms to the United Nations, and Interfax reported that the regime in Syria had said it would go along with the plan.

President Barack Obama was scheduled to detail his plans regarding Syria in a nationally televised address scheduled for 9 p.m. Eastern.

"Overnight, we had really strong economic data out of China, both their industrial production numbers and their retail-sales numbers were up double digits over year-ago numbers. That has Asian markets up nicely," Cronk added of reports from Beijing's National Bureau of Statistics.

The data had China's industrial output rising 10.4% in August from a year ago and retail sales gaining 13.4%. Wall Street finished higher on Monday after China reported exports growth that surpassed expectations.

On Tuesday, the Dow Jones Industrial Average (DJI) added 97.53 points, or 0.7%, to 15,160.65.

The makeup of the blue-chip index will change dramatically as of the open of trading on Sept. 23, with Goldman Sachs Group Inc. (GS) replacing Bank of America Corp. (BAC), Visa Inc. (V) replacing Hewlett-Packard Co. (HPQ), and Nike Inc. (NKE) bumping Alcoa Inc. (AA), S&P Dow Jones Indices said on Tuesday.

Shares of Hewlett-Packard and Alcoa fell on the news, with the former off 1% and the latter down 0.3%, while Bank of America was up 0.9%.

Goldman Sachs rose 3.1%, Visa gained 1.9% and Nike advanced 2.2%.

"You've replaced two stocks that essentially don't matter in Alcoa and Bank of America with two that do," said Dan Greenhaus, chief market strategist at BTIG LLC, in emailed commentary.

The S&P 500 index (SPX) rose 9.40 points, or 0.6%, to 1,681.11, with industrials and financials leading sector gains and energy the lead laggard among its 10 major sectors.

Apple Inc. (AAPL) fell 0.7% as the consumer-technology company readied to reveal its new iPhone models. Follow streaming coverage of Apple.

The Nasdaq Composite (RIXF) climbed 16.05 points, or 0.4%, to 3,722.23.

For every share falling, two rose on the New York Stock Exchange, where 124 million shares traded as of 10:05 a.m. Eastern.

Composite volume neared 570 million.

The price of crude (CLV3) fell $2.46, or 2.3%, to $107.06 a barrel and gold futures (GCZ3) slid $27.50, or 2%, to $1,359.60 an ounce on the New York Mercantile Exchange.

The dollar (DXY) gained against the currencies of major U.S. trading partners and Treasury prices fell, with the yield on the 10-year note (10_YEAR) up four basis points to 2.963%.

Subscribe to WSJ: http://online.wsj.com?mod=djnwires

HP (NYSE:HPQ)
Historical Stock Chart
Von Jun 2024 bis Jul 2024 Click Here for more HP Charts.
HP (NYSE:HPQ)
Historical Stock Chart
Von Jul 2023 bis Jul 2024 Click Here for more HP Charts.