NEW YORK (CNNMoney.com) -- Stocks rallied Wednesday after a surprisingly strong January retail sales report helped counter worries that a weakening consumer could send the already struggling economy into a recession.

According to early tallies, the Dow Jones industrial average (INDU) gained roughly 1.4%, while the broader Standard & Poor's 500 (SPX) index also added around 1.4%. Both the Dow and S&P 500 ended higher for the third session in a row.

The Nasdaq composite (COMP) gained around 2.3%, ending higher for the third out of four sessions.

"It feels like people are still extremely bearish and maybe more so than they should be, so a good piece of economic news like the retail sales report is going to get a positive response," said John Forelli, portfolio manager at Independence Investments.

A separate report showed that December business inventories rose 0.6%, topping forecasts.

Also in the mix Wednesday: news that President Bush has signed the $170 billion economic stimulus bill passed by Congress last week.

On the corporate front, investors considered better-than-expected earnings from chipmaker Applied Materials and Dow component Coca-Cola.

Additionally, News Corp. (NWS, Fortune 500) is in talks with Yahoo (YHOO, Fortune 500) about combining MySpace and other News Corp.-owned online properties, according to reports published Wednesday afternoon. A potential deal would give News Corp a stake in Yahoo and perhaps help the company fend off Microsoft (MSFT, Fortune 500)'s $44.6 billion unsolicited takeover offer. (Full story).

Has the market bottomed? Some Wall Street pros think the stock market may have bottomed back on Jan. 23rd, when the Dow hit a trading low of 11,644. Since then, stocks have rallied, slipped back down to within range of the lows and then bounced back. As of Wednesday afternoon, the Dow was more than 7% off that Jan. low.

Blue chips rallied Tuesday on news that Warren Buffett reached out to ailing bond insurers and that major lenders came up with a plan that they say will help homeowners avoid foreclosure. But a tech advance fizzled, with the Nasdaq ending near the unchanged line.

Exxon Mobil (XOM, Fortune 500) shares rose despite news that the Venezuelan president has announced the country is cutting off imports to the oil giant after Exxon won a court order to freeze state-owned assets.

Market breadth was positive. On the New York Stock Exchange, winners beat losers by 3 to 2 on volume of 1.12 billion shares. On the Nasdaq, advancers beat decliners more than two to one on volume of 1.89 billion shares.

Fund managers worried. The latest Merrill Lynch global fund managers survey, released Wednesday, shows that professional asset allocators are more worried about recession than in the previous month. The money managers are also pouring more money into cash than in previous months and are the wariest they've been about stocks since the aftermath of the 9/11 terrorist attacks.

Other markets. Treasury prices fell, raising the yield on the benchmark 10-year note to 3.69% from 3.66% late Tuesday. Bond prices and yields move in opposite directions.

In currency trading, the dollar gained versus the yen and was little changed versus the euro.

U.S. light crude oil for March delivery rose 49 cents to $93.27 a barrel on the New York Mercantile Exchange, gyrating after a weaker-than-expected weekly oil inventories report.