NEW YORK — The Dow Jones industrial average logged its longest winning streak in two years — barely.
A tiny gain gave the Dow its eighth straight increase Tuesday, long enough to match its longest series of gains since February 2011.
The Dow rose 2.77 points, or 0.02 percent, to 14,450.06, having wavered between small gains and losses for most of the day.
The broader Standard & Poor's 500 ended down 3.74 points, or 0.2 percent, at 1,552.48. The Nasdaq composite dropped 10.55 points, or 0.32 percent, to 3,242.32
Stocks have surged this year as investors became encouraged by a recovery in the housing market and a pickup in hiring. Strong corporate earnings and continuing economic stimulus from the Federal Reserve are also supporting demand for stocks.
The Dow has gained 10.3 percent so far in 2013, and last week it surpassed its previous all-time high of 14,164.53. The S&P 500 has risen 8.9 percent this year and is less than 1 percentage point away from its record close of 1,565.15 set in October 2007.
David Bianco, chief U.S. equity strategist at Deutsche Bank, said the S&P 500 index will likely maintain its momentum in the coming weeks and surpass its all-time high. Strong first-quarter corporate earnings reports could also push the market higher.
"I wouldn't be surprised if the market has a typical five percent pullback in the summer," said Bianco. "But I think we go higher before that happens."
The last significant downturn for stocks started before the Presidential elections in November, when the Dow fell 8 percent between Oct. 5 and Nov. 15 on concern that a divided government wouldn't be able to reach a budget deal to stop the U.S. going over the "fiscal cliff" of sweeping tax hikes and deep spending cuts.
Stocks haven't had a correction, typically defined as a decline of between 10 and 20 percent, since November 2011. That sell-off came after talks on cutting the U.S. deficit broke down in Washington.
Merck was the biggest gainer in the Dow, advancing $1.38, or 3.2 percent, to $45.04 after the drugmaker said a data safety monitoring board recommended that a study of its cholesterol drug Vytorin should continue.
Peter Cardillo, chief market economist at Rockwell Global Capital, was also among those saying investors should expect a pause in the market's advance.
"Nothing goes up forever," Cardillo said. "We will be headed for a correction somewhere along the line."
Markets were mixed in Europe. Italy easily sold €7.75 billion ($10 billion) in 12-month bonds, though at slightly higher interest rates. It was the first test of market sentiment since Fitch downgraded the country's credit rating on Friday due to political uncertainty there.
The Dow's biggest wobble this year came on Feb. 25, when it lost 1.6 percent after inconclusive results from Italian elections pushed the country toward political gridlock, threatening its ability to follow through on unpopular budget cuts demanded by its European neighbors. That gave investors a flashback to last spring, when a flare-up in Europe's debt crisis sent markets spiraling lower in the U.S. and Europe.