Gold steadied near $4,000 an ounce as traders weighed a US-China trade truce that failed to quash concerns about long-term competition between the world’s two largest economies.