Shanghai nonferrous metals closed all with gains as the market confidence was boosted by the signs of relaxing pandemic control measures in China.