Gold prices rose on Wednesday on uncertainty about trade talks between the United States and China, which boosted the metal's safe-haven appeal despite a firmer dollar.
The precious metal, which is often used to store wealth in times of political or economic uncertainty, showed signs of strength after U.S. President Donald Trump said he was not pleased with recent talks with China.
Trump also said there was a "substantial chance" his summit with North Korean leader Kim Jong Un will not take place as planned on June 12 amid concerns that Kim is resistant to giving
up his nuclear weapons.
The dollar, in which gold and other commodities are priced, rose versus a basket of currencies, with investors awaiting minutes of the Federal Reserve's latest policy meeting due later in the day.
"Normally in such a stronger dollar environment gold is trading lower but it's not and this is indicating there is probably safe-haven flows supporting gold," said Quantitative Commodity Research consultant Peter Fertig.
Spot gold was 0.3 percent higher at $1,294.31 per ounce as of 1210 GMT, having touched its highest since May 15 at $1,297.84. U.S. gold futures for June delivery rose 0.2 percent to $1,294 per ounce.
Prices remained stuck in a narrow range, just below $1,300 per ounce, as investors awaited more clues on the path of U.S. interest rates.
At its previous meeting in May, the U.S. central bank expressed confidence in the economy and kept its benchmark lending rate unchanged. It said inflation was near the bank's target, leaving it on track to raise borrowing costs in June.
Gold is highly sensitive to rising U.S. rates, as these tend to boost the dollar.
Gold has shown reduced volatility in the last few trading sessions as it attempted a break above $1,300 and prices are "waiting for a new, clear direction," said ActivTrades chief analyst Carlo Alberto De Casa.
Holdings of the world's largest gold-backed exchange-traded fund (ETF), New York-based SPDR Gold Shares, fell 0.38 percent to 852.04 tonnes on Monday from 855.28 tonnes on Friday.
"We think gold will be in for a period of consolidation in the short term and are monitoring moves in ETF holdings - which have surprisingly held rather steadily given the move through $1,300 support," said MKS senior precious metals dealer Alex Thorndike.
Palladium eased 1.4 percent to $976.97 an ounce.