U.S. stocks gained on Wednesday, with a positive read on consumer confidence spreading cheer just before the holiday-shopping season and as Hewlett-Packard helped ignite a rally in technology shares.
"Traders were worried about the holiday season and if consumers were going to sit this one out. It's very important to the economy and the ongoing recovery that we have a good holiday season," said Chris Gaffney, senior market strategist at EverBank.
The Dow Jones Industrial Average again rose to a record close, gaining 24.53 points, or 0.2 percent, to 16,097.33. The followed suit, climbing 4.48 points, or 0.3 percent, to 1,807.23. Technology led sector gains and energy the losses among the S&P's 10 major industry groups.
"The S&P feels stuck in the mud compared to the Nasdaq. Of course with Apple taking out 539 resistance, and other popular horsemen up, it is no surprise," Elliot Spar, market strategist at Stifel, Nicolaus & Co., noted in afternoon commentary.
Closing at a more-than 13-year high, and extending gains into a fifth session, the Nasdaq added 27 points, or 0.7 percent, to 4,044.75.
Hewlett-Packard shares jumped after the personal-computer maker reported revenue and profit above expectations.
The Thomson Reuters/University of Michigan gauge on consumer sentiment came in at 75.1 in November, topping estimates for a rise to 73.5.
Another report had the leading index of economic indicators up 0.2 percent in October.
Other data Wednesday morning had fewer Americans than expected filing applications for jobless benefits last week, while orders for durable goods declined in October.
"In general, the numbers had a positive tone," said Gaffney.
And, a measure of business activity in the Chicago region for November proved better than expected.
On Tuesday, stocks rose, with the Dow posting a record finish, as better-than-expected reports on housing ignited a rally among home builders.
"As the averages keep marching higher, one has to ponder whether money mangers that are lagging their benchmarks are responsible. That leads to the question of what happens if a selloff starts in the next two weeks, do money mangers book profits to protect their month, year?" Does selling beget more selling?" asked Spar at Stifel Nicolaus.
EverBank's Gaffney does not believe equities will march steadily higher into 2014. "There is going to be some profit taking, that's the headwind the market is taking into the end of the year, with people just booking those returns," he said of Wall Street's strong performance in 2013, with the S&P 500 up nearly 27 percent.
As for next year, "nobody is expecting a repeat of this year, as far as equity returns go. We'll drift higher in 2014," said Gaffney, who believes the market's focus will largely be on when the Federal Reserve begins curbing its monthly asset purchases, and once tapering has commenced, earnings will come back into play.
—By CNBC's Kate Gibson
Coming Up This Week:
Thursday - U.S. market closed for Thanksgiving holiday.
Friday - Early close for bond, stock markets.
More From CNBC.com: