NEW YORK (MarketWatch) -- U.S. stock indexes on Thursday pulled solidly higher after two days of losses, with the forecast from discount retailer Wal-Mart Stores Inc. and a broker upgrade for Intel Corp. helping overshadow March's disappointing retail sales.
"Wal-Mart issued upside guidance for its first fiscal quarter, an upgrade at Intel by Bank of America to buy from neutral and unemployment claims, while still high, were less than expected," said Robert Pavlik, chief investment officer at Oaktree Asset Management.
After erasing early losses to climb more than 100 points higher by the afternoon, the Dow Jones Industrial Average more recently was up 32.90 points to 12,560.16, with 15 of its 30 components advancing.
The S&P 500 Index rose 3.03 points to 1,357.52, and the technology-heavy Nasdaq Composite Index gained 23.41 points to 2,345.53, with the sector buoyed by Yahoo Inc.'s maneuvering to put more heat on Microsoft Corp. to hike its buyout bid. .
Shares of Yahoo gained 2.6%, while Microsoft's were up 0.6%.
"Bigger picture, we're still in a trading range for the most part. Folks are still trying to figure out which direction we're headed, and investors are waiting for more earnings reports to see where the economy stands and where the sectors are headed," added Pavlik.
Advancing sectors were led by consumer-discretionary shares, up 1.9%, with information technology close behind, recently gaining 1.8%. The utility sector was off 0.6%, while energy fell 0.5%.
Early economic data revealed that the U.S. trade deficit widened sharply.
Other data had weekly jobless claims falling 53,000 to 357,000 last week. .
Volume on the New York Stock Exchange came to 3.3 billion, while nearly 2 billion shares were exchanged on the Nasdaq. On the NYSE, nearly four stocks posted gains for three issues on the decline. On the Nasdaq, advancers beat decliners 5 to 4.
Retailers released same-store sales figures for March, with companies generally producing worse-than-forecast results. Limited Brands Inc. , Wet Seal Inc. and Pacific Sunwear of California Inc. were among the disappointments.
Wal-Mart proved an exception, with it shares offering an early rise, recently up 1.6%, after it lifted its view on first-quarter earnings and reported a 0.7% same-store sales rise.
Shares of Wal-Mart advanced 0.7%.
Bed Bath & Beyond Inc. erased earlier losses to advance 0.2% after projecting first-quarter earnings per share may be as much as 32% below forecasts.
On the New York Mercantile Exchange, crude-oil futures fell 76 cents to end at $110.11 a barrel. .
Other action on the NYME had gold futures dropping $5.7 to $931.80 an ounce. .
Heading into Thursday's session, the Bank of England cut interest rates by a quarter-percentage point to 5%, citing "disruption in financial markets." The European Central Bank kept rates steady at 4%, while the central bank of Iceland -- known for having one of the highest interest rates in the developed world -- hiked rates by a half a point.
U.S. stocks on Wednesday saw their worst single day since March 28 after oil, gasoline and corn hit records and United Parcel Service Inc. cut its earnings outlook.
By Kate Gibson