US stocks finished mostly higher on Friday to wrap up a subdued week - with technology companies doing most of the heavy lifting.
Investors were also pleased to see that shoppers spent more money in September.
Printer and PC maker HP sent technology companies higher after releasing a strong profit forecast for next year. Big names like Intel and Facebook also rose.
Companies in retail, travel and entertainment moved up after the Commerce Department's report on retail spending. Health insurers and hospital operators skidded after President Donald Trump said he will stop government payments to insurance companies under the Affordable Care Act.
Bank of America climbed while Wells Fargo faded as banks continued to report their third-quarter results.
The Standard & Poor's 500 index added 2.24 points, or 0.1%, to 2,553.17. The Dow Jones industrial average picked up 30.71 points, or 0.1%, to 22,871.72. The Nasdaq composite gained 14.29 points, or 0.2%, to close at a record high of 6,605.80. The Russell 2000 index of smaller-company stocks slid 2.51 points, or 0.2%, to 1,502.66.
The Commerce Department said retail sales grew 1.6% in September after a small decline in August. Much of the gain came from car and petrol sales: sales of cars jumped as people living in the south-east and Gulf Coast replaced vehicles that were destroyed by hurricanes Harvey and Irma, which also caused temporary spikes in petrol prices. But other types of spending grew by a solid amount as well.
HP forecast a larger annual profit than analysts expected, and also said it will return at least 50% of its free cash flow to shareholders by paying dividends or buying back stock. HP stock gained 1.31 dollars, or 6.4%, to 21.71 dollars.
The White House said late Thursday that it is stopping subsidy payments to insurers under the 2010 health care law. Those payments help reduce copays and deductibles for people with lower incomes. The move could increase losses for insurers and reduce payments to hospitals and other health care facilities. Adding to the uncertainty, the sign-up period for subsidised private insurance starts on November. 1.
Medicaid program administrator Centene lost 3.12 dollars, or 3.2%, to 90.56 dollars and insurer Anthem gave up 5.81 dollars, or 3.1%, to 184.38 dollars. Hospital operator Tenet dropped 71 cents, or 5.1%, to 13.15 dollars and ambulatory surgery centre operator Envision Healthcare fell 91 cents, or 2.2%, to 40.74 dollars.
Bond prices rose. The yield on the 10-year Treasury note declined to 2.27% from 2.32%.
Materials companies rose with metals prices. Gold gained 8.10 dollars to 1,304.60 dollars an ounce. Silver climbed 15 cents to 17.41 dollars an ounce. Copper rose 1 cent to 3.13 dollars a pound.
Steelmakers climbed after Bloomberg News reported that China imported a record amount of iron ore in September and exported less steel. That sent prices higher. US Steel climbed 1.80 dollars, or 7%, to 27.36 dollars and AK Steel added 31 cents, or 5.6%, to 5.80 dollars.
Utility PG&E continued to tumble as investors wondered if the company will face penalties connected to the California wildfires. Officials said this week they are investigating the possibility that downed power lines or other faulty equipment touched off the fires, which have killed 31 people and destroyed at least 3,500 homes since Sunday.
PG&E stock dropped 6.7% on Thursday and fell another 6.78 dollars, or 10.5%, to 57.72 dollars on Friday. Citi Investment Research analyst Praful Mehta said the company lost 2.2 billion dollars in value Thursday alone, and even if PG&E were found responsible and grossly negligent for the fires, he says it probably wouldn't be fined much more than that.
The DAX in Germany rose 0.1% while the FTSE 100 index in Britain lost 0.3%. The French CAC 40 fell 0.2%. Japan's Nikkei 225 rose 1 while South Korea's Kospi lost 0.1%. In Hong Kong, the Hang Seng added 0.1%.