The S&P 500 ended lower on Thursday after a choppy session as disappointing earnings reports from several companies offset strong economic data.

A sharp drop after the open had pushed the S&P 500 and the Dow Jones Industrial Average below their 200-day moving averages, a key technical indicator of longer-term momentum. But both indexes pared losses to rise back above those levels, with the Dow edging up slightly by the market’s close.

Shares of insurer American International Group and drug distributor Cardinal Health fell after the companies reported quarterly results. AIG, down 5.3 percent, and Cardinal Health, down 21.4 percent, were among the largest drags on the S&P 500.

Despite an overall strong earnings season, investors have seized upon hints that corporate profits may have peaked.

The economic data provided a more upbeat outlook. The number of Americans receiving unemployment aid fell to its lowest since 1973, and the U.S. trade deficit narrowed for the first time in seven months. Factory orders for March also rose.

Still, there was concern that economic growth has moderated and that future interest-rate increases by the Federal Reserve could slow growth. On Wednesday, the Fed left rates unchanged but said inflation has moved closer to its 2-percent target.

Tesla fell 5.5 percent after CEO Elon Musk cut off analysts asking about the company’s profit potential, despite promises that production of the troubled Model 3 electric car was on track.

Shares of Spotify Technology were down 5.7 percent after the music-streaming company’s results underwhelmed investors. Spotify made its debut as a public company in April.

Approximately 7.56 billion shares changed hands on the major domestic equity exchanges as compared to the 6.61 billion share average over the last 20 trading days.

Day’s Economic News

Our trade deficit narrowed sharply in March as exports increased to a record high amid a sharp increase in deliveries of commercial aircraft and soybeans, strengthening the economy’s outlook heading into the second quarter.

Other data on Thursday indicated a modest increase in new applications for jobless benefits last week, as the number of Americans receiving unemployment aid fell to its lowest level since 1973, pointing to tightening labor market conditions.

Wage growth is also rising, with hourly compensation accelerating in the first quarter. That should help to increase consumer spending after it slowed sharply in the first three months of the year.

The Commerce Department said the trade deficit fell 15.2 percent to $49.0 billion in March, the lowest level since September. The trade gap widened to $57.7 billion in February, which was the highest level since October 2008.

March’s decline ended six straight monthly increases in the trade deficit. The politically sensitive goods trade deficit with China dropped 11.6 percent to $25.9 billion, which will probably do little to ease tensions between the United States and China.

The White House has threatened tariffs on up to $150 billion worth of Chinese goods to punish Beijing over its joint-venture requirements and other policies Washington says force American companies to surrender their intellectual property to state-backed Chinese competitors.

China, which denies it coerces such technology transfers, has threatened retaliation in equal measure, including tariffs on our soybeans and aircraft. A U.S. trade delegation arrived in China on Thursday for trade talks.

The Administration, claiming that we are being taken advantage of by our trading partners, has already imposed broad tariffs on imported solar panels and large washing machines. He recently slapped 25 percent import duties on steel and 10 percent on aluminum.

The Administration also argues that the perennial trade deficit is holding back economic growth. The government reported last week that trade contributed 0.20 percentage point to the first quarter’s 2.3 percent annualized growth pace. The economy grew at a 2.9 percent rate in the fourth quarter.

In a separate report, the Labor Department said initial claims for state unemployment benefits rose 2,000 to a seasonally adjusted 211,000 for the week ended April 28.

Claims remained near a more than 48-year low of 209,000 during the week ended April 21. The labor market is near or at full employment. The unemployment rate is at a 17-year low of 4.1 percent, close to the Federal Reserve’s forecast of 3.8 percent by the end of this year.

The Fed on Wednesday left interest rates unchanged, stating that it expected “economic activity will expand at a moderate pace in the medium term and labor market conditions will remain strong.”

The number of people receiving benefits after an initial week of aid fell by 77,000 claims to 1.76 million in the week ended April 21, the lowest level since December 1973. With labor conditions tightening, wage growth is picking up.

A second report from the Labor Department showed hourly worker compensation accelerated at a 3.4 percent rate in the first quarter after rising at a 2.4 percent pace in the October-December period. It increased at a 2.5 percent rate compared to the first quarter of 2017.

In March, exports of goods and services increased 2.0 percent to an all-time high of $208.5 billion, lifted by a $1.9 billion increase in shipments of commercial aircraft. There were also increases in exports of soybeans, corn and crude oil. Real goods exports were the highest on record. Exports to China jumped 26.3 percent in March.

Imports of goods and services fell 1.8 percent to $257.5 billion, in part as the boost from royalties and broadcast license fees related to the Winter Olympics faded. Imports of capital goods fell by $1.5 billion, weighed down by declines in imports of computer accessories, telecommunications equipment and semiconductors.

Imports of consumer goods decreased by $0.9 billion. Crude oil imports dropped by $0.5 billion in March. Imports from China fell 2.1 percent.