Gold rose on Thursday, extending gains to a third session, as weak Chinese data and doubts about whether Beijing and Washington will reach a trade deal any time soon dented demand for riskier assets.

Spot gold was up 0.4% at $1,468.10 an ounce, as of 11.03am GMT, having climbed to a near one-week high of $1,470.33 earlier in the session. US gold futures also rose 0.4% at $1,468.90 an ounce.

China and the US are holding “in-depth” discussions on a first-phase trade agreement, and cancelling tariffs is an important condition to reaching a deal, the Chinese commerce ministry said.

“We are seeing some risk aversion in the markets,” said Craig Erlam, Oanda senior market analyst: “The commentary from both sides has kind of taken away some optimism around this phase one deal.”

On Tuesday, US President Donald Trump said a trade deal with China was “close” but offered no details and warned that he would raise tariffs “substantially” on Chinese goods without such an accord.

“Gold should be in greater demand at least in the short term because the negotiations of a partial agreement in the trade dispute between the US and China appear to have stalled,” Commerzbank analyst Daniel Briesemann said in a note. “Trump’s threat of further punitive tariffs against China also appears to be having after effects.”

A Reuters poll of economists showed the US-China trade war is unlikely to see a permanent truce over the coming year, and while concerns have eased over a US recession, an economic rebound is also not expected any time soon.

World stocks nudged down as data showed China’s industrial output grew significantly slower than expected in October, while Germany only narrowly avoided a recession in the third quarter, compounding worries about the global growth fallout from the trade war.

Also supporting safe-haven gold were worries about spiraling violence in Hong Kong as anti-government protesters paralysed parts of the city for a fourth day.

“We may have found a base at about $1,445-$1,450, however, the metal is likely to remain range-bound over the near term unless we see $1,475-$1,480 broken,” MKS Pamp said in a note.

Meanwhile, holdings of the world’s largest gold-backed exchange-traded fund, SPDR Gold Trust, eased slightly to 896.77 tonnes on Wednesday.

In other metals, palladium climbed 1.1% to $1,728.10 an ounce. Silver rose 0.6% to $17.06 an ounce, while platinum was 0.3% higher at $876.02 an ounce.