By Caitlin McCabe

U.S. stocks are closing out a blockbuster quarter Tuesday.

Major indexes were mixed at the open but are on pace for their best quarterly gains in years. The S&P 500 is up 14% through Monday, and the Nasdaq has jumped 20%-the biggest quarterly rallies for both since the second quarter of 2020.

Those gains have come amid a remarkably volatile quarter, including as recently as last week, when tech stocks sold off. Investors have returned to the trade again this week.

Meanwhile, investors are monitoring for updates out of the Middle East, after President Trump said Monday that the U.S. will meet with Iran Tuesday in Qatar. An Iranian official said Monday that Tehran hadn't decided on the timing of the discussions. Oil prices are creeping higher ahead of the expected talks.

Traders are also eyeing the Japanese yen, which has been hovering near a 40-year low. Money managers remain on high alert for currency intervention.

Write to Caitlin McCabe at caitlin.mccabe@wsj.com

This item is part of a Wall Street Journal live coverage event. The full stream can be found by searching P/WSJL (WSJ Live Coverage).