The S&P 500 and Nasdaq have closed at record highs, with both lifted by Apple after data pointed to some pockets of strength in the US economy.

US business activity snapped back to the highest since early 2019 in August, according to IHS Markit surveys, as companies in both manufacturing and services sectors recorded a resurgence in new orders.

Another report showed US home sales rose at a record pace for a second straight month in July and home prices hit all-time highs.

The unexpectedly sharp increases in Markit’s indexes extend a pattern of choppy US economic data this week – including weekly jobless claims – that paint a picture of a fitful recovery from the COVID-19 recession.

“It’s not surprising to see a pickup in manufacturing as the economy has started to re-open, even though pockets of the country have pulled back on their re-openings,” said Lindsey Bell, chief investment strategist at Ally Invest.

“It’s an encouraging sign and it supports the upside we have seen in the markets.”

Apple Inc rallied more than 5.0 per cent as its market value continued to swell after the most valuable publicly listed company in the world crossed the $US2 trillion milestone this week.

The iPhone maker boosted the S&P 500 and Nasdaq more than any other company on Friday.

Bets that technology-focused companies including Apple and will emerge stronger from the pandemic set the S&P 500 and the Nasdaq on track to close out the week higher.

On Tuesday, the S&P 500 recouped all its losses caused by the coronavirus-driven slump and joined the Nasdaq in scaling new peaks.

The Dow is still 6.0 per cent below its all-time high in February.

Investors also worry about a stalemate in talks between House Democrats and the White House over the next coronavirus aid bill as about 28 million people in the US continued to collect unemployment cheques.

The Dow Jones Industrial Average rose 0.69 per cent to end at 27,930.33 points, the S&P 500 gained 0.34 per cent to 3,397.16 and the Nasdaq Composite climbed 0.42 per cent to 11,311.80.

For the week, the Dow was near unchanged, the S&P 500 rose 0.7 per cent and the Nasdaq added 2.7 per cent.

“There is a cult of buying out there and selling is considered a fool’s errand. That’s a very temporary condition,” warned Mike Zigmont, head of trading and research at Harvest Volatility Management in New York.

During Friday’s session, the S&P 500 information technology index jumped 1.2 per cent and industrials rose 0.35 per cent.

The two were the strongest sectors.

Tesla jumped 2.4 per cent after surging past the $US2,000 a share mark on Thursday for the first time, extending its rally ahead of an upcoming share split.

Deere & Co rose 4.4 per cent after the world’s largest farm equipment maker raised its full-year earnings forecast.

On US exchanges, 8.4 billion shares changed hands, compared with the 9.6 billion average for the last 20 sessions.

Declining issues outnumbered advancing ones on the NYSE by a 1.88-to-1 ratio; on Nasdaq, a 2.04-to-1 ratio favoured decliners.

The S&P 500 posted 27 new 52-week highs and no new lows; the Nasdaq Composite recorded 56 new highs and 30 new lows.