gold posts gains as floor trading winds down