Specialists Matthew Grenier (left) and Dilip Patel (second left) work with traders Patrick Casey (third left) and Peter Tuchman on the floor of the New York Stock Exchange on Friday. (AP Photo/Richard Drew)

US stock indexes turn mixed following trade war talk

At first, the Standard Poor’s 500 index plunged as much as 1.1 percent, but later recoverd.

NEW YORK — U.S. stock indexes were mixed in midday trading on Friday after paring sharp losses from earlier. It’s the latest dizzying swing in a whirlwind week dominated by fears about a possible trade war and a more aggressive Federal Reserve.

When U.S. markets opened for trading, the Standard & Poor’s 500 index plunged as much as 1.1 percent to join a worldwide sell-off after President Donald Trump doubled down on “trade war” talk.

Trump took to Twitter to defend his promise from Thursday to impose stiff tariffs on imports of steel and aluminum, which has investors worried about escalating retaliation by other countries. He said that the United States is losing on trade with virtually every country and that “trade wars are good” and “easy to win.”

Investors had a different impression. Markets tumbled from Asia to Europe, where the president of the European Union’s governing body promised retaliation if Trump follows through.

The S&P 500 trimmed its loss as the day went on, and it was virtually flat at 2,678 as of 12:40 p.m. Eastern time. It’s still on pace for a loss of 2.5 percent this week, which would be its third decline that severe in the last five weeks. Last year, the worst weekly loss was just 1.4 percent.

The Dow Jones industrial average fell 129, or 0.5 percent, to 24,479, and the Nasdaq composite rose 24, or 0.3 percent, to 7,205.

A trade war would threaten one of the key reasons investors were optimistic about stocks coming into 2018: The global economy was finally strengthening in sync, which should lead to higher corporate profits. Big U.S. companies are heavily reliant on global trade, which means investors in U.S. stocks have only recently begun feeling the full benefit.

Companies in the S&P 500 got 43 percent of their sales from outside the United States in 2016, according to the most recent data from S&P Dow Jones Indices. That means Apple and other big U.S. companies are dependent on customers not only in Peoria but also Paris and Peru.

A “trade war is in no one’s interests,” said Roberto Azevedo, head of the World Trade Organization.

Stocks of smaller U.S. companies, which tend to do more of their business at home, did much better than the rest of the market. The Russell 2000 index of small-cap stocks rose 13, or 0.9 percent, to 1,520.

The trade worries are piling onto a market that was already nervous. Concerns about the possibility of higher inflation and interest rates have rocked markets since the S&P 500 set its latest record high in late January.

Inflation has been low in the years following the Great Recession, but if it jumps higher, it could force the Federal Reserve to raise short-term rates more sharply than investors are expecting. That could easily upset markets, which had been enjoying a remarkably smooth ride last year. Higher rates can steer investors away from stocks because bonds will be paying more in interest.

The Fed’s chairman, Jerome Powell, jolted markets on Tuesday, when he said that he’s feeling more optimistic about the U.S. economy. Some investors took that as a signal that the Fed may get more aggressive, which sent stocks down and Treasury yields higher. Later in the week, though, Powell may have calmed some of the fears when he said that he does not see inflation in wages “at a point of acceleration.”

If Trump follows through on his tariff promise, it could raise costs for companies that use lots of steel, which could lead to higher inflation.

The yield on the 10-year Treasury rose to 2.86 percent from 2.81 percent late Thursday. The two-year yield, which moves more on expectations of Fed movements, rose to 2.24 percent from 2.22 percent. The 30-year yield, which moves more on expectations of future inflation, climbed to 3.14 percent from 3.09 percent.

The biggest loss in the S&P 500 came from Foot Locker, which plunged after it said sales trends were weaker last quarter than analysts expected. Shares dropped $6.62, or 14.4 percent, to $39.27.

McDonald’s stock dropped on fears that its value menu isn’t drumming up much in sales, and an analyst at RBC Capital Markets cut his expectations for the chain’s sales in the United States. Its shares dropped $7.71, or 5 percent, to $147.99.