NEW YORK (AP) -- Stocks inched up to another record on Wednesday after spending much of the day flitting between gains and losses.
After big moves up in recent days, investors appeared to take a bit of breather. They nudged stocks higher at the open, then sent them down, then back up in indecisive trading that set the tone for the rest of the day. In the last half hour, the Standard and Poor's 500 crept to a tiny gain, closing up less than a third of a point, an increase of just 0.01 percent.
Still, it was another high, and a winning streak that began with a strong U.S. jobs report on Friday stretched into a fourth day.
Investors are hoping the strengthening economy combined with low interest rates will help lift corporate profits and the appetite for stocks.
"Good economic numbers could translate into decent second quarter earnings, and rates are low," said Ernie Cecilia, chief investment officer of Bryn Mawr Trust. That makes for a "decent environment" for stocks.
Utility companies rose more than the rest of the market, though, a sign that investors are cautious as they seek out the relative safety of steady dividend payers. Investors also sought safety in U.S. government bonds, sending yields lower. The yield on the 10-year Treasury note, which had been rising since hitting an all-time low last week, dropped to 1.47 percent from 1.51 percent.
The S&P 500 edged up 0.29 points to 2,152.43. The Dow Jones industrial average rose 24.45 points, or 0.1 percent, to 18,372.12. The Nasdaq composite lost 17.09 points, or 0.3 percent, at 5,005.73.
Rising oil prices have brought relief to the stock market in recent months, but the price reversed course Wednesday after the U.S. government said crude oil stockpiles shrank less than expected last week. Hess slumped $2.11, or 3.5 percent, to $58.02 and Devon Energy lost $1.01, or 2.5 percent, to $39.
Eight of the 10 biggest losers in the S&P 500 were energy-related companies.
For all the recent gains in stocks, the major indexes are barely above their old records a year ago.
"In essence, we have a stock market that has given us zero gains but plenty of heartaches," said James Abate, chief investment officer at Centre Asset Management.
Investors will turn their attention to second quarter earnings reports over the next few days. Earnings per share at companies in the S&P 500 are expected to fall 5.5 percent compared with the same period a year ago, according to research firm S&P Global Market Intelligence. That will be the fourth quarter in a row of drops.
On Thursday, JP Morgan Chase and Delta Air Lines report, followed by Citigroup and Wells Fargo on Friday.
Among stocks making big moves, Juno Therapeutics soared $2.63, or 9.5 percent, to $30.42 after regulators said its leukemia drug trials can continue. The stock had tumbled Friday after the Food and Drug Administration halted testing.
Arts and crafts chain Michaels fell $1.75, or 6 percent, to $27.13 after a disappointing forecast. It said it plans to sell stock to raise money.
In overseas trading, Britain's FTSE 100 slipped 0.2 percent and Germany's DAX fell 0.3 percent. France's CAC 50 rose 0.1 percent.
In Japan, the Nikkei 224 extended gains for another day with a rise of 0.8 percent on hopes that Prime Minister Shinzo Abe will expand bond purchases and flood financial markets with money now that his Liberal Democratic Party has won parliamentary elections.
South Korea's Kospi gained 0.7 percent. Hong Kong's Hang Seng index rose 0.5 percent.
In the currency markets, the euro rose to $1.1107 from $1.1067 and the dollar fell to 104.31 yen from 104.79 yen. The pound fell to $1.3182 from $1.3271.
Precious and industrial metals prices rose. Gold climbed $8.30 to $1,343.60 an ounce, silver increased 24 cents to $20.41 an ounce and copper added 3 cents to $2.24 a pound.
Benchmark U.S. crude fell $2.05, or 4.4 percent, to close at $44.75 a barrel in New York. Brent crude, a standard for international oil prices, lost $2.21, or 4.6 percent, to close at $46.26 a barrel in London.
In other energy trading, wholesale gasoline lost 5 cents, or 3.6 percent, to close at $1.38 a barrel, heating oil fell 8 cents, or 5.6 percent, to $1.38 a barrel and natural gas was flat at $2.74 per 1,000 cubic feet.