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

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

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.

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 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.

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, said 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,” Gendreau said. “New products, new markets, cost savings. I don’t believe that is going to stop any time soon.”

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.

In other news:

SPECTRUM PHARMACEUTICALS: It 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: It 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: It 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: It 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.

GOOGLE: Google says the executive in charge of its popular Android software for smartphones and tablet computers is stepping down from the job. The unexpected change marks the first time that the Android software has been overseen by someone other than Andy Rubin, who will continue at Google in an undisclosed role.

RENAULT: The French carmaker says it has reached a potentially groundbreaking deal with leading unions that allows it to reduce its workforce and cut costs in exchange for keeping jobs and production in France.

BHP BILLITON: The Australian mining giant is under investigation by U.S. and Australian law enforcement for potential violations of anti-corruption laws through its sponsorship of the 2008 Beijing Olympics.