By Tanya Agrawal
(Reuters) - U.S. stocks held on to their gains in early afternoon trading on Tuesday, reversing earlier declines, on strong earnings from Merck, better-than-expected housing data and a dividend hike from IBM.
The markets swung between gains and losses in early trading, led by Apple
A majority of the ten S&P 500 sectors were up in afternoon trading, led by a 1.4 percent rise in the teleservices index <.SPLRCL>.
U.S. single-family home prices rose more than expected in February from a year earlier, according to a survey.
"So far, the first quarter earnings have surpassed expectations and the housing numbers came in strong," said John Augustine, chief investment officer at Huntington Bank in Columbus, Ohio, which oversees more than $12.6 billion in funds.
"So any time you have any good economic data, the markets react positively."
U.S. companies are on track to post a slight gain in earnings for the first quarter after stronger-than-expected results from companies such as Apple, reversing forecasts for the first profit decline since 2009, according to Thomson Reuters data.
Merck
IBM
Earlier in the session, a report said an Iranian "force" seized a U.S. cargo ship after opening fire on it in the Gulf, spurring a brief rally in oil prices and adding to the volatility in the stock market.
"I think any kind of international question about how things will fare or relationships with other countries absolutely has an impact," said Peter Anderson, portfolio manager at Congress Asset Management in Boston, which oversees about $7 billion in assets under management.
"The non-resolution of things can really make the market edgy in terms of volatility."
At 13:30 p.m. EDT (1730 GMT) the Dow Jones industrial average <.DJI> was up 62.92 points, or 0.35 percent, at 18,100.89, the S&P 500 <.SPX> was up 5.31 points, or 0.25 percent, at 2,114.23 and the Nasdaq Composite <.IXIC> was up 9.84 points, or 0.19 percent, at 5,070.09.
Investors are also awaiting the results of a two-day Federal Reserve meeting that ends on Wednesday for clues on when the central bank will hike interest rates.
JetBlue Airways
Coach
Whirlpool
Advancing issues outnumbered declining ones on the NYSE by 1,870 to 1,097, for a 1.70-to-1 ratio on the upside; on the Nasdaq, 1,693 issues rose and 977 fell for a 1.73-to-1 ratio favoring advancers.
(Additional reporting by Caroline Valetkevitch; Editing by Savio D'Souza)