By Anna Isaac and David Benoit

The S&P 500 edged higher Wednesday, nearing a fourth consecutive record, buoyed by data pointing to a U.S. economic recovery.

The broad stock-market index climbed 1.02% as of the 4 p.m. close of trading in New York. The Dow Jones Industrial Average turned slightly higher, up 0.3%.

The Nasdaq Composite also extended its recent record streak, up 1.7%, as tech stocks followed soon-to-be Dow component Salesforce higher.

Volatility in U.S. stocks has been muted through much of August, with many investors and traders taking summer vacations in the U.S. and Europe. The Cboe Volatility Index, a closely watched gauge of turbulence in U.S. stocks, has in recent days been at its lowest since before the coronavirus pandemic capsized markets.

Investors have grown confident that the Federal Reserve and other central banks will continue to bolster the economy by holding short-term interest rates low and buying government bonds and other forms of debt. That is pushing yields on sovereign debt, considered among the safest assets to own, below expected inflation levels. It's also prompted investors to look for higher returns in riskier assets, like equities.

Data on Wednesday showed orders for durable goods in the U.S. surged 11.2% in July, more than double the expected gain. Orders for defense aircraft and motor vehicles drove the spending higher, but even without those volatile categories the figures exceeded forecasts.

Stats like the surge in durable goods will likely feed investors who are confident the recovery is continuing, said Tobias Levkovich, the head U.S. equity strategist at Citigroup.

Earlier in the week, he bumped higher his dour target for the S&P 500 for the year, saying central bank support and investor appetite made it more likely stocks would remain elevated, even if there are questions about the health of the economy. He cautioned the data is still coming off lows, but said investors are paying closer attention to acceleration.

"The markets are following momentum right now because it is a sign of progress," he said. "But at some point we have to look at the absolute levels."

He's started calling it FOMU -- the fear of meaningfully underperforming.

In bond markets, the yield on the benchmark 10-year U.S. Treasury note edged up for a third day, another sign that investors' risk appetite is improving. It rose to 0.693%, from 0.680% Tuesday.

"There's still trillions of dollars on the sidelines in money-market funds. It needs to be deployed and the only real home for it is equities, " said Edward Park, deputy chief investment officer at Brooks Macdonald.

Fixed income markets have been positioning for potential changes to monetary policy on Thursday, when Fed Chairman Jerome Powell is expected to signal shifts to the central bank's approach to managing inflation at the annual Jackson Hole Economic Policy Symposium.

"The market is braced for shifts in the monetary policy regime," said Diana Amoa, a fixed-income fund manager at JPMorgan Asset Management. She said a confirmation of that change could still lead to a knee-jerk reaction that steepens the yield curve and brings in overseas buyers who have battled negative rates.

Investors are also watching the progress of Hurricane Laura as it gathers strength and churns toward Texas and Louisiana. It is expected to strengthen to a Category 4 storm and forecast to produce a life-threatening storm surge, extreme winds and flash flooding over eastern Texas and Louisiana, the National Hurricane Center said at 5 a.m. ET.

Brent crude, the international oil benchmark, was down a penny to $46.28 a barrel, Stockpiles of fuel are high due to the pandemic's impact on demand, potentially minimizing the disruption on energy prices from the storms.

The energy and utility sectors in the S&P 500 both declined and refineries were being closed. Baker Hughes and Hess dropped more than 3%, while Chevron and Exxon Mobil weighed on the Dow, both off more than 1%.

Tech stocks were once again driving the market higher.

Shares of Salesforce jumped 26%. The business-software provider posted record quarterly sales and raised its guidance after the closing bell on Tuesday, showcasing the sustained appetite for cloud-computing services during the pandemic. The company will be added to the Dow Jones Industrial Average at the start of trading Monday.

The stocks that have led the way for much of the year were rallying again as well. Netflix climbed 10.5%, its biggest gain in three years, while Facebook rose nearly 7%.

Shares of Dick's Sporting Goods climbed 16% after the retailer said its e-commerce sales nearly tripled in the quarter ended Aug. 1, more than doubling its profit from a year ago.

One of the year's darlings, Moderna rose 5.5% after disclosing it had new data on its experimental coronavirus vaccine that showed promising signs for older patients. The stock is up about 260% this year.

Overseas, the pan-continental Stoxx Europe 600 edged up 0.9%. In Asia, major stock gauges ended the day on a mixed note.

Write to Anna Isaac at anna.isaac@wsj.com and David Benoit at david.benoit@wsj.com