NEW YORK (AP) — Hour-to-hour swings for oil prices keep jerking financial markets around, and U.S. stocks are drifting Thursday following the latest reversal.

The S&P 500 rose 0.2% and inched closer to its all-time high set last week. The Dow Jones Industrial Average was up 351 points, or 0.7%, as of 2:30 p.m. Eastern time, and the Nasdaq composite was 0.2% higher.

All three indexes erased early drops and gained strength following the latest U-turn for oil prices. Brent crude oil briefly got above $109 per barrel in the morning, threatening to worsen the world's already high inflation, before quickly erasing all its gains in midday trading and falling 2% to $102.93.

Oil prices have been yo-yoing because of uncertainty about how long the war with Iran will keep the Strait of Hormuz shut. The closure has prevented oil tankers from exiting the Persian Gulf to deliver crude to customers worldwide, driving up oil's price.

As oil prices eased Thursday, so did pressure on Wall Street that's been building from the bond market.

Yields had climbed so high that they're threatening to slow economies worldwide and undercut prices for stocks, bitcoin and all kinds of other investments. They've already forced the average long-term U.S. mortgage rate to its most expensive level since last summer, and they could curtail companies’ borrowing to build the AI data centers that have been supporting the U.S. economy’s growth recently.

The yield on the 10-year Treasury briefly got near 4.63% in the morning before falling back to 4.55% following the midday turnaround for oil prices. That's down from 4.57% late Wednesday and from 4.67% the day before.

Some of the biggest beneficiaries of lower yields can be the smallest companies, many of which need to borrow money to grow. The Russell 2000 index of the smallest U.S. stocks rallied 1.2%, far more than the rest of the market.

Stocks of companies with big fuel bills also rose because of the easing of oil prices. Southwest Airlines climbed 2.8%, and American Airlines flew 3.6% higher.

Ralph Lauren jumped 15% after reporting stronger profit and revenue for the latest quarter than analysts expected.

Source: WPLG