Stocks close higher on tech strength

NEW YORK (CNNMoney) -- U.S. stocks closed higher Wednesday as strength in the technology sector offset weakness in energy producers and industrial companies.

The Dow Jones industrial average (INDU) rose 33 points, or 0.3%, to close at 12,426; the S&P 500 (SPX) added 3 points, or 0.2%, to 1,335; the Nasdaq Composite (COMP) gained 8 points, or 0.3%, to 2,799.

Tech stocks were among the best performers with Cisco (CSCO, Fortune 500) leading gainers on the Dow. Shares of financial services companies were also strong, with American Express (AXP, Fortune 500) and JPMorgan (JPM, Fortune 500) both up more than 2%.

Energy stocks came under pressure after the government's weekly inventory report showed smaller-than-expected declines in U.S. supplies of oil and gasoline, raising fears that energy demand is waning.

Monsanto fell sharply after the farm products company reported quarterly sales that disappointed some investors, even as profits rose.

Gold prices settled at a nominal all-time high on a combination of a weaker dollar, geopolitical turmoil and general fears about inflation. Oil prices closed higher after rising above $109 a barrel earlier in the session.

"It's been a pretty mixed day with not much to react to," said Kate Warne, chief investment strategist with Edward Jones. "I think that's going to be the case until we start to start to get first-quarter earnings, which will be the main driver next week."

The first-quarter reporting period unofficially starts Monday when Dow-stock Alcoa reports results. Overall, earnings for the companies in the S&P 500 are expected to be up 11% versus last year, according to Thomson Reuters.

Meanwhile, investors continue to keep an eye on budget negotiations in Washington and political turmoil in the Middle East and North Africa.

Looking ahead, the European Central Bank is widely expected to announce plans to hike interest rates when it meets Thursday. In addition, economic reports due Thursday include March same-store sales figures from leading retailers, weekly unemployment claims and wholesale inventories.

Companies: Bed Bath & Beyond said it earned $283.5 million, or $1.12 per share, in its fiscal fourth quarter. That's up about 30% from last year and better than the 97 cent per share profit analysts surveyed by Thomson Reuters had forecast.

The company said it expects earnings to be somewhere between 58 cents and 61 cents per share in the second quarter. The consensus forecast was 60 cents.

The European Central Bank is widely expected to hike interest rates by a quarter point when it meets Thursday. China raised interest rates for the fourth time in six months early Tuesday, in an attempt to cool inflation.

Currencies and commodities: The dollar fell versus the euro and the British pound but rose against the Japanese yen.

Gold futures for June delivery rose $6 to close at a nominal record high of 1,458.50 an ounce. Silver broke a 31-year high of $39.71 an ounce earlier in the morning.

Oil for May delivery gained 30 cents to settle at $108.65 a barrel. The nation's supplies of crude rose by 2 million barrels last week, according to the government's weekly inventory report. The increase matched forecasts from energy research firm Platts.

However, gasoline stocks fell by 400,000 barrels. Analysts had expected gas supplies to have fallen by 2 million barrels. Distillate supplies fell by 200,000 barrels, versus a forecasted decline of 1.5 million.

Bonds: The price on the benchmark 10-year U.S. Treasury fell, pushing the yield up to 3.52% from 3.49% late Tuesday.