US stocks opened strongly on Tuesday, with all three major indices moving higher and the S&P 500 poised to refresh its two-month high. As of this writing, the Dow Jones Industrial Average was up 1.32%, the S&P 500 gained 0.81%, and the Nasdaq Composite rose 1%. This record-breaking rally not only reflects investors’ optimism about the earnings season but also signals an important shift in the underlying logic of the US stock market.

The Dow’s outperformance is largely attributable to the stellar showing of industrial giant Caterpillar (CAT.N). As the second-heaviest weighted component of the Dow, Caterpillar’s shares surged by double digits after the company delivered encouraging quarterly results, directly lifting sentiment across the blue-chip complex. Additionally, data analytics firm Palantir and ON Semiconductor (ON.O) also posted notable gains on better-than-expected earnings.

Drawing even more attention, SpaceX is set to release its first quarterly earnings report since going public, after the market close today. With the lock-up period for early investors expiring at a critical juncture, SpaceX’s financial “debut” will directly determine share price stability amid this wave of unlocked shares. SpaceX shares rose more than 4% on Tuesday to $120, though still below its IPO target price of $135.

Despite the sharp volatility in AI-related names earlier in the period, UBS strategist Keith Parker believes the current tape is actually a sign of a healthy bull market. Looking back at July, US stocks experienced an extremely rare divergence: the S&P 500 finished roughly flat, but the iShares MSCI USA Momentum Factor ETF (MTUM), which tracks high-growth potential names, plunged 13%—its worst monthly performance since April 2022. Parker noted that this phenomenon of “a stable broad index with collapsing momentum stocks” has had virtually no precedent since the 1990s, making it an extreme outlier.

However, UBS takes an optimistic view. Parker analyzed that this is essentially a reallocation of capital. Investors haven’t abandoned AI or tech stocks; rather, with the AI cycle only entering its second year (compared to typical tech cycles that last around a decade), they are beginning to prioritize quality names outside the AI trade. The strength in Caterpillar and Palantir is clear evidence that capital is spreading into diversified areas and market breadth is expanding.

On the geopolitical and macro front, market uncertainty is also gradually dissipating. According to the latest signals from the Trump administration, negotiations between the US and Iran are ongoing, and market expectations for a ceasefire deal are rising. As a result, international oil prices pulled back further, with Brent crude futures falling to around $81 per barrel and WTI crude futures dipping to roughly $78. US Treasury yields declined, easing pressure after last week’s spike and helping to alleviate inflation concerns.

With the two major indices approaching record highs, investors are selectively ignoring geopolitical volatility and short-term skepticism about the AI trade. The prevailing market consensus leans toward the view that as long as corporate earnings remain resilient, the upward momentum in US stocks can be effectively sustained.

The S&P 500 rose 0.5% in early trading Tuesday, hovering near 7,640 points. A gain of at least 0.13% on the day would mark a new closing record, surpassing the all-time high set on June 2. The Dow surged 655 points, or 1.2%, extending gains after closing at a record high on Monday—its first since July 6. The Nasdaq Composite rose 1%, sitting about 4% below its early-June record.

The S&P 500’s return to record highs marks the end of a two-month slump. The index had fallen nearly 5% from its recent peak before grinding higher. Overall, the index has remained relatively close to its all-time high, but AI-related jitters have intensified market anxiety. The Nasdaq fell nearly 10% from its recent peak in late July, approaching what is known as a technical correction. After a stunning run earlier this year, semiconductor chip makers sold off sharply, and investors turned selective toward other tech names, putting pressure on the market. South Korea’s market also experienced sharp single-day swings and unusual volatility, highlighting the risks of excessive market concentration in a single theme like AI.

That said, investors are focusing on earnings and buying the dip in some large-cap tech and software names, while rotating capital into other sectors. The Dow closed above 53,000 on Monday for only the second time in history. The Dow and S&P 500 sit at record highs while the Nasdaq lags, as investors look beyond technology. Over the past three months, healthcare and financials—sectors with heavy weightings in the Dow—have outperformed technology. But tech remains the third-best performing sector over the same period, and the Nasdaq has already risen more than 3% this week, playing catch-up with the other indices.

Tech stocks have led the market higher this year, with the AI boom dominating as investors’ favorite theme. Investors are trying to discern which companies will emerge as winners or losers in the AI wave. Wall Street is in the middle of quarterly earnings season. According to FactSet data, as of July 31, roughly 61% of S&P 500 companies had reported results, with 86% beating earnings-per-share estimates. Overall, corporate earnings growth is robust, with blended actual-and-estimated metrics pointing to the highest earnings growth rate in five years.

Craig Johnson, chief market technical analyst at Piper Sandler, wrote in a note: “Falling oil prices, lower yields, and broadening participation as the S&P 500 approaches record highs point to a favorable ‘risk-on’ narrative, but lingering headline risk and lackluster market breadth make the recovery ‘good but not great.'”

Historical data shows that August through October is typically the weakest three-month stretch for the S&P 500, and investors are closely watching the AI trade and whether the Nasdaq can reclaim its record high.