The S&P 500 hit an all-time high Wednesday, a remarkable turnaround for the broad-based stock index while the war with Iran continues and rising energy costs threaten global growth prospects. The S&P 500 closed higher by 0.8% pushing the benchmark past its previous record high of 7,002.28, which it had notched Jan. 28. The index closed at 7,022.95. U.S. equity markets have been on a roller coaster since the start of the year. After its January high, the S&P 500 plunged 9.8% to a low of 6,316.91 on March 30, driven by the U.S.-Israel war on Iran and the soaring price of oil. But in the two weeks since, markets appear to have adjusted to the constant uncertainty of the war. “As far as the stock market is concerned, the war is over until further notice,” Ed Yardeni, president of Yardeni Research, said. “It has also been another momentum-led rebound, similar to last year’s explosive rally that started on April 9, when President Donald Trump postponed his Liberation Day tariffs,” Yardeni said.…