SAN FRANCISCO (MarketWatch) -- Gold prices went from red to rallying Monday amid lingering concerns about the health of the world economy, briefly topping their May 12 record before settling a couple dollars short of that high mark.

Gold futures for August delivery, the most active contract, added $23.10, or 1.9%, to settle at $1,240.80 an ounce on the Comex division of the New York Mercantile Exchange - $2.30 from their May 12 settlement record of $1,243.10.

The contract set an intraday high of $1,243.30 an ounce in electronic trading, according to the CME Group, which owns Comex.

"A lot of the momentum players are trying to catch on," said Charles Nedoss, a senior market strategist with Olympus Futures in Chicago.

Silver tracked gold higher and finished up 5% on Monday. Silver for July delivery added 86 cents to $18.16 an ounce. July copper finished 5 cents off, or 1.9%, to $2.76 a pound - an eight-month low for the metal.

"We're seeing a lot of people readjusting their portfolios trying to figure out the best flight-to-quality asset," said Adam Klopfenstein, a trader and senior strategist at Lind-Waldock in Chicago. Gold is the clear winner of the day, winning over U.S. bonds and currencies, as "people are feeling more confident buying gold," he added.

It is likely to be a volatile week for gold trading, as prices will continue to push higher and test new records, Klopfenstein added. "Right now people don't want to wait for the next leg down and they are jumping into gold."

Recurrent pessimism about the financial shape of the world is likely to keep gold prices well supported around $1,198 an ounce, with a ceiling around $1,230 an ounce, said Scott Meyers, an analyst with MF Global's Pioneer Futures division in New York.

With Europe's debt situation and BP Plc's BP, -1.18% oil spill in the gulf as the main focus of concerns, gold is expected to remain "nervously up" as fears about the economic recovery will still dominate, he added.

On Friday, the contract gained $7.70, or 0.6%, to end at $1,217.70 an ounce, giving the precious metal a 0.3% gain for the holiday-shortened week.

BP's latest effort to stem the flow of oil in the gulf was partly successful, but as the oil slick has the potential to move about the Eastern seaboard it could affect a much larger swath of the population and economic activities, Meyers said.

"It could slow down the economy in a way we've never seen before ... believe me, I want to be wrong on this," he said.

Last week, markets came under heavy selling pressure after a Hungarian government spokesman said that the nation faced the same sort of debt trouble that pushed Greece onto shaky financial ground.

Even as the government distanced itself from those statements, the euro stood just above $1.19 on Monday, and the dollar index DXY, -0.07% , which compares the U.S. unit against a basket of six currencies, was up at 88.35.

A rising dollar is usually negative for commodities as it makes them more expensive to holders of other currencies, but gold has often glossed over the usual negative correlation to gain even on days the U.S. currency is stronger. The dollar lately has been seeing as a lesser evil versus the embattled euro.

Meanwhile, holdings of the SPDR Gold Trust GLD, -0.60% , the largest exchange-traded fund backed by gold, on Friday decreased by roughly three metric tons to 1,286 metric tons (1,417 short tons), down from a record on Thursday.

That represented a change of pace for the ETF, which had increased inventories by 20 metric tons last week. Analysts at Commerzbank said they don't expect a slowdown in investor demand for the product, however.

The world's biggest gold processor, Rand Refinery Ltd., announced that sales of the South African Krugerrand gold coin had increased by 50% within one week, Commerzbank analysts said in a note to clients Monday. "Prior to that, Austria's and Australia's mints had already reported a clearly increased demand for gold coins. Thus, it is not surprising that speculative investors also continue to bet on rising prices," they said.

Meanwhile, platinum and palladium also closed lower on Comex Monday. Platinum for July delivery was off $8, or 0.5%, to $1,517.30 an ounce. Palladium for September delivery declined 65 cents, or 0.1%, to $430.35.