U.S. stocks staged a turnaround Wednesday, pushing all three benchmarks into positive territory, in the wake of an opening skid after reports surfaced on developments in U.S. international trade relations that were being viewed as upbeat.

What are major indexes doing?

The Dow Jones Industrial Average DJIA, +0.59% gained 101 points, or 0.4%, at 25,634, but had hit a low of 25,341, while the S&P 500 index SPX, +0.70%  gained 15 points, or 0.5%, to 2,850. The Nasdaq Composite index COMP, +1.11%  was up 74 points to 7,810, an advance of 1%.

On Tuesday, the Dow finished 207.06 points higher, a gain of 0.8%, at 25,532.05, while the S&P 500 rose 22.54 points, or 0.8%, to 2,834.41. The Nasdaq Composite advanced 87.47 points, or 1.1%, to close at 7,734.49.

What’s driving the market?

The Trump administration plans to delay a decision on instituting new tariffs on car and auto part imports for up to six months, according to media reports Wednesday morning, after which stocks recovered early-morning losses and edged into positive territory.

The Commerce Department had submitted a report to the White House in February that gave the president the authority to impose new duties on car imports on national security grounds, with a deadline of May 18, but the president has the authority to delay the decision for another 180 days.

The president has long complained about the relative popularity of Japanese and European cars among American consumers, and has threatened tariffs as a means of getting the EU and Japan to agree to concessions in future trade negotiations.

The news potentially offsets worries that a worsening U.S.-China trade conflict would be joined by spats with other major trade partners like the European Union at the same time that Congress is considering whether or not to ratify the Trump administration’s U.S.-Mexico-Canada trade pact, which, if passed, would replace Nafta as the treaty governing North American trade.

CNBC reported Wednesday that House Speaker Nancy Pelosi will meet with U.S. Trade Representative Robert LIghthizer to discuss the deal among other trade-related topics.

The president on Tuesday also appeared to soften his rhetoric around trade, calling the dispute with China a “squabble” and repeating expectations for a positive meeting with Chinese leader Xi Jinping next month in Japan.

Disappointing data on U.S. retail sales have helped to reinforce jitters about slowing domestic growth amid fears over the frayed relationship between Beijing and Washington that escalated last week after the Trump administration allowed tariffs on $200 billion of Chinese goods to increase to 25% from 10% and prepared further duties on a range of other goods.

Opinion: Washington and Wall Street wake up to the reality that Beijing is happy to walk away

Retail sales figures for April showed that U.S. retailers are seeing decelerating purchases for a second time in three months, declining 0.2% last month, compared with expectations for a 0.1% increase, per a MarketWatch poll of economists. Excluding autos, retail sales were flat for the month, versus expectations for 0.7% growth.

Though the letup follows a surprisingly strong 1.7% surge in retail sales in March, the broader trend in consumer spending reflects a slowing economy despite a health labor market.

Read: Why the stock market is at the mercy of the U.S. consumer

Meanwhile, China’s economic activity cooled last month, with data released Wednesday showing a slowing in factory production, investment and retail sales.

What are analysts saying?

“The 0.2% m/m decline in retail sales in April was weaker than the consensus expectation of a small gain and supports our view that GDP growth is set to slow in the second quarter,” wrote Andrew Hunter, senior U.S. economist with Capital Economics, in a research note.

“With Donald Trump playing down trade tensions between the U.S. and China as a ‘little squabble,’ there is cautious optimism that both sides will eventually reach a trade deal, with investors potentially looking at the G-20 meeting in Japan next month as a possible target for a breakthrough in trade relations,” said Han Tan, market analyst at FXTM, in a note.

Which stocks are in focus?

Auto makers Ford Motor Co. F, +1.36% and General Motors Co. GM, +1.00% rose Wednesday, following reports of an auto-tariff delay.

Shares of Macy’s Inc. M, -0.41% fell 0.2%, after the retailer beat analyst estimates for first-quarter profits, but reported falling revenue that was shy of expectations.

Alibaba Group Holding Ltd. BABA, +0.59% stock rose 1.1%, after the China-based e-commerce giant reported fiscal fourth-quarter earnings and revenue that rose above expectations.

What else is on the economic calendar?

The Empire State manufacturing survey in May climbed to a six-month high of 17.8 from a reading of 10.1 in April, the New York Fed announced Wednesday.

Industrial production, meanwhile, fell 0.5% in April, while capacity utilization fell to 77.9% from an upwardly revised 78.8% in March. Economists polled by MarketWatch expected a 0.1% drop for production and a decline in utilization fell to 78.6%.

Business inventories were flat in March, the Commerce Department said Wednesday, while sales rose 1.6% on the month.

The National Association of Home Builders’ monthly confidence index jumped three points to 66 in May, the trade group said Wednesday; the highest reading since October.

Randal Quarles, the Fed’s vice chair for supervision testified before Congress Wednesday morning on the topic of bank regulation.

How are other markets faring?

Asian markets closed mostly higher on Wednesday, as Japan’s Nikkei 225 NIK, +0.58% rose 0.6%, Hong Kong’s Hang Seng Index HSI, +0.52% added 0.5%, while the Shanghai Composite SHCOMP, +1.91% advanced 1.9%. In Europe, stocks edged higher, as reflected by a 0.3% advance for the Stoxx Europe 600 SXXP, +0.46%

Crude oil CLM9, +0.45% prices were advancing, while the price of gold GCM9, +0.03% edged higher. The U.S. dollar DXY, +0.00% meanwhile, was flat.

Providing critical information for the U.S. trading day. Subscribe to MarketWatch’s free Need to Know newsletter. Sign up here.