NEW YORK -- The Dow Jones industrial average notched its ninth gain in a row, giving the index its longest winning streak in more than sixteen years.

The index edged up 5.22 points, or 0.04 percent, to 14,455.28. The Dow has risen every day this month and is up 10.3 percent this year, having surpassed its previous all-time high of 14,164.53 March 5th.

Demand for stocks has been propelled this year by optimism that the housing market is recovering and that companies have started to hire. Strong company earnings and ongoing stimulus from the Federal Reserve are also helping make stocks more attractive.

The Dow’s last nine-day winning streak was logged in May 1996. In November of the same year, in the early days of the technology boom, it gained for 10 straight days.

Stocks overcame an early loss Wednesday, having edged lower at the start of the trading day despite an unexpectedly strong increase in U.S. consumer spending last month.

Americans spent at the fastest pace in five months in February, boosting retail spending 1.1 percent compared with January, the Commerce Department reported Wednesday. Economists had forecast a rise of just 0.2 percent, according to data provider FactSet.

The failure of the market to rally directly after the report suggests that the bar has now risen for investors as stocks have rallied.

“As the market rises, so do expectations,” said Bill Stone, chief investment strategist at PNC Wealth Management. “So, even if you get good numbers you don’t necessarily get the market to go up.”

The solid increase in retail sales is encouraging for the economy because it shows that Americans kept spending despite a payroll tax increase that has lowered take-home pay this year for most workers. Consumer spending drives about 70 percent of the U.S. economy.

The Standard & Poor’s 500 index rose 2.04 points, or 0.1 percent, to 1,554.52. The Nasdaq composite rose 2.80 points, or 0.1 percent, to 3,245.12

Stocks of retail companies rose after the sales report. Kohl’s rose $1.49, or 3.15 percent, to $48.82 and Best Buy gained 67 cents, or 3.3 percent, to $20.96.

Brian Gendreau, a strategist at Cetera Financial Group, says that even if markets dip in coming weeks, the trend of rising company earnings is likely to push stocks higher in the longer term. So far companies have reported 7.7 percent earnings growth for the fourth quarter, the third straight quarter of gains, according to S&P Capital IQ.

“Earnings growth has been quite strong. Corporations have found a way to make money,” said Gendreau. “New products, new markets, cost savings. I don’t believe that is going to stop any time soon.”

The S&P 500 index has gained 9 percent in 2013 and is within less than a percentage point of its record close of 1,565.15 set in October 2007.

Stocks in Europe were mixed. Most markets edged lower after industrial production in the countries using the euro unexpectedly fell by 0.4 percent in January. Economists had expected it to rise by 0.1 percent, according to FactSet.

The yield on the 10-year Treasury note was unchanged from late Tuesday at 2.02 percent.

Among stocks making big moves;

— Spectrum Pharmaceuticals plunged $4.64, or 37 percent, to $7.79 after the pharmaceutical company said sales of its drug Fusilev could fall by more than half this year.

— Dole dropped $1.06, or 9 percent, to $10.67 after the company’s fourth-quarter results fell short of analysts’ expectations. The fruit company cited lower banana prices in North America.

— Express fell 60 cents, or 3.2 percent, to $18.25 after the clothing retailer’s earnings report disappointed investors. Michael Weiss, the company’s CEO and chairman, told analysts on a conference call that customer traffic was “down noticeably” compared to last year.

— Netflix rose $10.25, or 5.6 percent, to $192.36 after the internet video service said that it’s adding a feature that will allow its subscribers in the U.S. to automatically swap movie and TV show recommendations with their friends on Facebook.