NEW YORK (Reuters) - The S&P 500 and Nasdaq advanced on Thursday, as gains in heavyweight tech stocks outweighed downbeat data that affirmed the Federal Reserve’s view of a difficult road to economic recovery.

Gains in Apple Inc - the only publicly listed U.S. company to cross the $2 trillion market value milestone - Amazon.com Inc and Microsoft Corp underpinned the three main indexes’ gains as investors bet they would ride out the economic crisis.

Stocks had opened lower after data showed jobless claims rose unexpectedly back above the 1 million mark last week after slipping below that level for the first time since the start of the pandemic.

A separate set of data from the Philadelphia Fed showed a business conditions index fell more than expected in August.

More in category

Opinion: Ruth Bader Ginsburg played a pivotal role in the women’s-rights era — and that was before she joined the Supreme Court
September 18, 2020MarketWatch
Opinion: Ruth Bader Ginsburg played a pivotal role in the women’s-rights era — and that was before she joined the Supreme Court
‘The president is only worried about the stock market and his re-election,’ says Biden in Minnesota, as Trump also campaigns in the state
September 18, 2020MarketWatch
‘The president is only worried about the stock market and his re-election,’ says Biden in Minnesota, as Trump also campaigns in the state
Opinion: Stock market is at the start of a selloff, says veteran trader Larry Williams
September 18, 2020MarketWatch
Opinion: Stock market is at the start of a selloff, says veteran trader Larry Williams
Stocks close lower, notching third straight weekly loss as tech-led sell-off intensifies
September 18, 2020MarketWatch
Stocks close lower, notching third straight weekly loss as tech-led sell-off intensifies
Fed’s Kashkari decries ‘absurd’ U.S. financial system that needs bailout every 10 years
September 18, 2020MarketWatch
Fed’s Kashkari decries ‘absurd’ U.S. financial system that needs bailout every 10 years
Mega-cap tech stock selloff has the QQQs on track for biggest monthly drop since the financial crisis
September 18, 2020MarketWatch
Mega-cap tech stock selloff has the QQQs on track for biggest monthly drop since the financial crisis
Compass Pathways' stock debuts with a rally, as the first trade was 38% above the IPO price
September 18, 2020MarketWatch
Compass Pathways' stock debuts with a rally, as the first trade was 38% above the IPO price
New TikTok plan would see Oracle, Walmart, others give U.S. companies majority stake
September 17, 2020MarketWatch
New TikTok plan would see Oracle, Walmart, others give U.S. companies majority stake
Sell Rosh Hashana, buy Yom Kippur? Why some traders put stock in this strategy
September 18, 2020MarketWatch
Sell Rosh Hashana, buy Yom Kippur? Why some traders put stock in this strategy
Weekend reads: Ray Dalio on what business and political leaders must do to keep the U.S. from splintering
September 18, 2020MarketWatch
Weekend reads: Ray Dalio on what business and political leaders must do to keep the U.S. from splintering
Unity stock surges in IPO debut: ‘This is not a normal company,’ CEO says
September 18, 2020MarketWatch
Unity stock surges in IPO debut: ‘This is not a normal company,’ CEO says
Dr. Fauci: ‘We may be able to put this coronavirus outbreak behind us’ — but he says Americans must play a critical role
September 18, 2020MarketWatch
Dr. Fauci: ‘We may be able to put this coronavirus outbreak behind us’ — but he says Americans must play a critical role
WHO warns of ‘very serious situation unfolding’ in Europe as COVID-19 cases climb
September 18, 2020MarketWatch
WHO warns of ‘very serious situation unfolding’ in Europe as COVID-19 cases climb
Why one stock-market bull thinks it’s ‘pretty absurd’ to compare tech selloff to 2000’s dot-com bust
September 18, 2020MarketWatch
Why one stock-market bull thinks it’s ‘pretty absurd’ to compare tech selloff to 2000’s dot-com bust
Coronavirus update: Global case tally tops 30 million, and controversial CDC testing guideline changes were reportedly not made by CDC scientists
September 18, 2020MarketWatch
Coronavirus update: Global case tally tops 30 million, and controversial CDC testing guideline changes were reportedly not made by CDC scientists
Fed’s Kashkari says warnings of runaway inflation are just ‘ghost stories’
September 18, 2020MarketWatch
Fed’s Kashkari says warnings of runaway inflation are just ‘ghost stories’
Opinion: What Snowflake and JFrog are telling us about the IPO market now vs. 1999
September 18, 2020MarketWatch
Opinion: What Snowflake and JFrog are telling us about the IPO market now vs. 1999
Fed to add pandemic-recession scenarios to next round of big banks’ stress tests
September 17, 2020MarketWatch
Fed to add pandemic-recession scenarios to next round of big banks’ stress tests
Fed makes its last stand in struggle to keep potent in age of low interest rates
September 17, 2020MarketWatch
Fed makes its last stand in struggle to keep potent in age of low interest rates
What will quad witching mean for the stock-market trade on Friday?
September 17, 2020MarketWatch
What will quad witching mean for the stock-market trade on Friday?
Philadelphia pediatrician Paul Offit: Prepare to wear masks and socially distance even after getting COVID-19 vaccine
September 17, 2020MarketWatch
Philadelphia pediatrician Paul Offit: Prepare to wear masks and socially distance even after getting COVID-19 vaccine