The S&P 500 rose almost 15 percent for the three months through June, and many stock analysts remain optimistic that corporate earnings driven by artificial intelligence will keep growing.
The S&P 500 closed out its best quarter in six years on Tuesday after stock prices were lifted by a bumper round of corporate earnings and hopes for an end to the war between the United States and Iran.
The S&P 500 rose 14.9 percent for the three months through June, its best quarterly performance since the same period in 2020 when the world was beginning to recover from the worst of the coronavirus pandemic.
The market gains in the second quarter were initially led by the familiar Magnificent 7 group of companies that have been the driving force behind the rally for many years. The group — which consists of Amazon, Apple, Microsoft, Alphabet, Meta, Tesla and Nvidia — rose almost 30 percent from the end of March through the end of May.


