The Nasdaq Composite rose for an eighth straight session, a streak not seen since early July.
Economic reports were disappointing, but following a recent pattern, soft data was mostly dismissed by the market and blamed on the weather. US homebuilder confidence suffered its largest one-month drop ever in February, and the New York Federal Reserve's gauge of manufacturing was weaker than expected.
"We're going to see weather as a huge brush over a lot of economic data, mostly if it is related to the consumer," said Kim Forrest, senior equity research analyst at Fort Pitt Capital Group in Pittsburgh.
"People don't go out and look at homes in crappy weather."
Forest Laboratories
"This has everything to do with the changing face of healthcare and how we pay for it in the United States," Fort Pitt's Forrest said.
"If there was one big deal, there could be others."
More From This Section
Forest Labs shares soared 27.5% to $91.04. Shares of generic drug makers Teva
The Dow Jones industrial average fell 23.99 points or 0.15%, to end at 16,130.40. The S&P 500 gained 2.13 points or 0.12%, to finish at 1,840.76. The Nasdaq Composite added 28.758 points or 0.68%, to close at 4,272.783.
The S&P 500 closed 0.4% below its record close hit on January 15. The small-cap Russell 2000 outperformed the overall market with a 1.1% gain for the day.
Coca-Cola Co
With few obvious justifications for stocks climbing further, investors are left in the position they were in at the beginning of the year: unsure about the economy and earnings, but facing an environment where few other assets offer the same potential return as the equity market.
After the closing bell, Herbalife
Tesla Motors
Tesla shares rose 2.8% to $203.70 after hitting a record intraday high of $206. Apple shares edged up 0.4% to $545.99.
US-traded shares of BlackBerry Ltd
Swedish mobile phone game maker King, best known for the hit Candy Crush Saga, is planning a US stock market debut that could value it at more than $5 billion and trigger a flurry of technology company listings.
About 6.2 billion shares traded on US exchanges, below the 7.13 billion average so far in February, according to data from BATS Global Markets.
Advancing issues outnumbered declining ones on the New York Stock Exchange by a ratio of 2 to 1. On the Nasdaq, about nine issues rose for every four that fell.