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.
U.S. employers advertised more job openings in January, the Labor Department said Tuesday, suggesting that hiring will remain healthy in coming months.
Job openings rose 2.2 percent in January from December to 3.69 million. Openings had fallen nearly 5 percent in December, and they remain below November’s level of nearly 3.8 million.
Yet the report provided further evidence that the U.S. job market is strengthening. Employers laid off the fewest workers in January than in any month since records began in 2001.
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 5 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.
Markets were mixed in Europe. Italy easily sold euro 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.
In other news:
MERCK: It 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.
YUM BRANDS: It rose 89 cents, or 1.3 percent, to $68.73 after the owner of KFC, Pizza Hut and Taco Bell announced a smaller-than-expected drop in its sales in China for the months of January and February following a food scare over its chicken suppliers.
HOSTESS: Hostess is moving ahead with plans to sell its Twinkies and other snack cakes after nobody stepped forward to top an offer made by two investment firms. The bankrupt company had earlier picked a $410 million joint offer from Metropoulos & Co. and Apollo Global Management as the “stalking horse” bid to set the floor for an auction.
DIAMOND FOODS: It slumped $1.71, or 9.7 percent, to $15.89 after the snack maker reported disappointing second-quarter sales and offered an estimate for the rest of the fiscal year that also fell short of Wall Street estimates.
VERIFONE SYSTEMS: It gained $1.22, or 6 percent, to $21.68 after the company, a leading maker of terminals for electronic payments, said late Monday that its CEO is stepping down after recent stumbles cut the company’s stock price nearly in half.
COSTCO: It rose $1.31 to $103.75 after reporting that its fiscal second-quarter net income climbed 39 percent. The discount retailer pulled in more money from membership fees, its sales improved, and it also recorded a large tax benefit. Even without the tax benefit the results were better than analysts had expected.
CABELA’S: It soared $6.75, or 12.5 percent, to $60.65 after the fishing, hunting and outdoors retailer said that it expects first-quarter profit will come in above market expectations.