Gold steadied on Wednesday as the dollar slipped from a two-month peak on hopes of a trade deal between the United States and China, with the metal's gains capped by rising global stock markets.
Spot gold was up 0.1 percent at $1,311.65 per ounce, as of 1108 GMT, while U.S. gold futures gained 0.1 percent to $1,314.60 an ounce.
"The fact that gold prices have been holding above the $1,300 level over the last few days is supporting the market and the U.S. dollar index is somewhat weaker," said Commerzbank analyst Eugen Weinberg.
"Overall there is healthy demand from investors for gold."
The dollar steadied against its peers, easing off a two-month peak hit in the previous session, on hopes of a U.S-China trade truce. The currency has since last year been the preferred refuge for investors concerned about the dispute.
U.S. President Donald Trump on Tuesday said he could see letting the March 1 deadline for reaching an agreement with China "slide for a little while," if the two sides were close to a complete deal.
Gold rose to its highest since late April at $1,326.30 on Jan. 31, but has lost ground since as the dollar rallied.
"I think there is a little bit of barging hunting in the market after gold retreated from the recent highs," Julius Baer analyst Carsten Menke said.
On the technical front, gold is still holding above the key $1,300 support level, which investors view as a positive signal.
"A jump above $1,325 could trigger a new climb, otherwise this lateral move could continue while investors wait for news on the China–U.S. trade talks and other macroeconomic data, confirming (or not) the economic slowdown forecasted for 2019/2020," said ActivTrades chief analyst Carlo Alberto De Casa.
While major gold Exchange Traded Funds (ETF) tracked by Reuters have eased more than one percent, mirroring a slight pullback in gold since the start of this year, the ETFs have risen about five percent since mid-August, tracking an about 13 percent gain in gold in the same period.
However, inflows into the SPDR Gold Trust, the world's largest gold-backed ETF, continued to drop, down about 3 percent so far this month after four straight monthly gains.
"This reflects an improving sentiment in financial markets overall, which is a little bit of a drag on gold," Menke said.
"Yet I would not expect these outflows to continue given there is an overall consensus that gold is in a longer term uptrend."
In other precious metals, spot palladium rose 0.3 percent to $1,407.50 per ounce.
Platinum dropped 0.2 percent to $785, while silver slipped 0.3 percent to $15.65.