Gold edged lower on Wednesday as equities gained and investors digested minutes from the U.S. Federal Reserve's July meeting.
Spot gold was down 0.4% at $1,501.80 per ounce.
"(Market participants) are just being cautious ahead of the FOMC minutes; they're just taking gold off," said Phillip Streible, senior commodities strategist at RJO Futures.
"There seem to be spouts of optimism as far as the trade deal and the economy go, and these glimmers of hope are driving a rally in equities and people are jumping out of safety to take on risk through equities."
President Donald Trump on Wednesday said the United States is "doing great with China and other trade deals," while pressuring the Fed to lower interest rates, saying its policies were hampering U.S. growth and reducing the country's ability to compete economically.
Minutes from the Federal Open Market Committee's most recent meeting in July - when the U.S. central bank cut interest rates for the first time in a decade, by a quarter of a percentage point - were released at 2 p.m. ET. They showed the Fed had no "pre-set" path for cutting rates.
Lower interest rates decrease the opportunity cost of holding nonyielding bullion and weigh on the dollar, making gold cheaper for investors holding other currencies.
U.S. stocks rose broadly following upbeat retail earnings, while U.S. Treasury yields rose as rising stock prices reflected improving risk sentiment.
"Still, the precious metals market bulls should not be too disappointed in price action so far this week, as it can be argued gold and silver are showing resilience in the face of rallying global stock markets this week," Jim Wyckoff, senior analyst with Kitco Metals, wrote in a note.
Bullion has risen more than $100 since the beginning of August on concerns over the outlook for the global economy and the prospect of more U.S. interest rate cuts.
The central bank's annual seminar in Jackson Hole, Wyoming, later this week is also eagerly awaited, with the major focus on a scheduled speech by Fed Chair Jerome Powell.
Indicative of sentiment, holdings of the world's largest gold-backed exchange-traded fund, SPDR Gold Trust, have increased by about 17 tonnes so far this month, and stood at 845.17 tonnes on Tuesday.