The Nasdaq hit a record high on Thursday, led by mega-cap companies Apple, Amazon.com and Tesla, while solid results from Caterpillar and Merck helped investors shrug off signs of slowing economic growth.
Ten of the 11 major S&P sectors advanced, with technology hitting an all-time high and consumer discretionary rising more than 1%.
Shares of Tesla rose 3.4%. Apple and e-commerce giant Amazon.com gained 2.6% and 1.9%, respectively, ahead of their earnings reports later in the day that would wrap up a largely upbeat reporting season for Wall Street's tech titans.
Ford Motor jumped 8.4% after the carmaker topped third-quarter profit estimates and raised its full-year earnings forecast.
Caterpillar added 3.2% after reporting a better-than-expected quarterly profit on rising commodity prices, while a forecast raise by drugmaker Merck & Co helped its shares gain 4.6%.
"We are still favorable on US equities and don't expect any near term reasons for the bullishness to fade which is led on by strong earnings," said James Gaul, portfolio manager at Knights of Columbus Asset Advisors.
"There are supply chain issues affecting short-term results but there is anticipation for strong demand and supply issues subsiding going ahead, and for all major sectors the long term is attractive."
"Slower growth in Q3 was the result of a normalization of spending activity and the significant bottlenecks that remained ... it will not dissuade the Fed from deciding on a gradual end to its bond purchases next week, given the good situation on the labor market and increasing price risks," Bernd Weidensteiner, senior economist at Commerzbank, said in a note.
Stellar earnings reports have driven the benchmark S&P 500 index and the Dow Jones Industrial Average to record highs this week, with analysts expecting profits for S&P 500 companies to grow 38.6% year-on-year in the third quarter.
Tech and growth stocks also got a boost from a pullback in the US 10-year Treasury yield, which had hit its highest level since mid-May last week on inflation and rate-hike concerns.