(AP) -- Wall Street capped a week of milestones by delivering a couple more Friday.
A late-afternoon burst of buying lifted the major U.S. stock indexes, which had spent much of the day in a sideways drift. The gains nudged the benchmark S&P 500 index and Nasdaq composite to new closing highs for the second time this week. Both indexes also set record highs on Tuesday.
The Dow Jones Industrial Average eked out a gain, but ended the week slightly lower.
The market's latest milestones came as investors weighed a mixed bag of corporate earnings. Solid quarterly reports from Ford and Amazon helped lift the market. Weaker showings from Intel and Exxon Mobil cut into the Dow's gains.
Smaller company stocks fared better than the rest of the market, a bullish sign indicating that investors were more willing to take on risk.
While company earnings were mixed, investors drew encouragement from a government report estimating that the U.S. economy grew at a solid 3.2% annual rate in the first three months of the year --- a much bigger increase than expected.
"The first quarter number is typically the weakest of the year, so the fact that this number was so strong is a positive sign going forward," said Cliff Hodge, director of investments for Cornerstone Wealth.
The S&P 500 rose 13.71 points, or 0.5%, to 2,939.88. The broad index is now up 17.3% this year. The Dow rose 81.25 points, or 0.3%, to 26,543.33. The Nasdaq composite recovered from an early slide, adding 27.72 points, or 0.3%, to 8,146.40.
The Russell 2000 index of smaller company stocks climbed 16.20 points, or 1%, to 1,591.82.
Major European stock indexes ended mostly higher.
Bond prices rose. The yield on the 10 year Treasury fell to 2.50% from 2.53% late Thursday.
The S&P 500's latest all-time high underscores the market's blockbuster turnaround this year after nosediving at the end of 2018 amid fears of a recession, an escalating trade war between the U.S. and China, and concern that the Federal Reserve was moving too aggressively to raise interest rates.
In the months since, those concerns have eased or taken a back seat to more optimism among investors about the prospects for steady economic growth. Improved economic data out of China and signals that Washington and Beijing are making progress toward resolving their costly trade dispute has also helped ease market jitters.
Perhaps most of all, traders have been encouraged by an increasingly hands-off Fed, which has signaled that it may not raise interest rates at all in 2019 after seven increases the previous two years.
More recently, companies that have reported first quarter results have mostly met profit forecasts for the first quarter, taking some pressure off the market.
U.S. companies are about a third of the way through their latest round of quarterly reports. So far they've avoided analysts' most dire predictions for a severe contraction.
"It's marginally better than expected, so the market has rallied a bit," said Andrew Slimmon, managing director and senior portfolio manager at Morgan Stanley Investment Management.
Meanwhile, investor fears of a potential recession have subsided since the year started, helping the market steadily recover from its fourth-quarter meltdown.
"With no recession, the market was due for a bounce back," he said, noting that investors seem to be complacent with a less volatile market, which he said could be setting it up for a pullback.
Wall Street's strong recover this year has helped fuel a surge in corporate deals. So far this year, there have been $711 billion in mergers and acquisitions in the U.S., the fastest start to a year on record, according to Dealogic.
The market has also been rewarding some technology companies since their highly anticipated stock market debuts. Pinterest and Zoom both went public earlier this month and are trading near their raised initial prices. Ride-hailing company Uber and messaging platform Slack are set to be the next technology companies to open up for public investment.
All told, 34 IPOs have been completed this year, raising $9.5 billion, down from 55 IPOs that raised $18.5 billion in the same period last year, said Kathleen Smith, principal at Renaissance Capital, a provider of pre-IPO research and IPO exchange-traded funds.
Smith noted that the upcoming $8.5 billion Uber IPO and a pipeline of over 200 others, could make 2019 a record year for capital raised in the IPO market.
On Friday, gains in financial, health care and other sectors offset losses in technology stocks. Energy companies also fell as the price of U.S. crude oil slumped for the third straight day.
Ford Motor rode its trucks and SUVs to a solid first-quarter profit. The stock vaulted 10.7%.
Amazon gained 2.5% a day after the e-commerce giant said its profit more than doubled in the first quarter.
Intel shares tumbled 9% after the chipmaker warned that weak demand in China will likely continue through the current quarter. It slashed its forecast for the quarter and expects a drop in revenue for the year.
Exxon Mobil slid 2.1% after the oil company's first quarter profit fell by half, missing forecasts due to more spending on oil production and lower margins in its refinery business.
Exxon was part of a broad slide in energy sector stocks Friday, as the price of benchmark U.S. crude oil fell 2.9% to settle at $63.30 a barrel.
Oil prices increased during the first quarter following an agreement by OPEC and allies including Russia to limit production. More recently, prices have risen after the U.S. government announced it will end waivers from sanctions for countries that import oil from Iran, including China, India, Japan and South Korea.
Energy futures finished mostly lower.
Brent crude, the international standard, fell 3% to close at $72.15 per barrel. Wholesale gasoline slid 1.5% to $2.10 per gallon. Heating oil dropped 2.2% to $2.05 per gallon. Natural gas rose 2.1% to $2.57 per 1,000 cubic feet.
Gold rose 0.7% to $1,288.80 per ounce, silver gained 0.8% to $15.01 per ounce and copper added 0.9% to $2.89 per pound.
The dollar slipped to 111.61 Japanese yen from 111.62 yen late Thursday. The euro strengthened to $1.1154 from $1.1128.