# Software stocks are getting punished for AI spending, but hardware is booming — long TSMC over Microsoft

_AI-generated trading idea · LONG · MU, TSM_

> Canonical page: https://commonquant.ai/research/for-you/software-stocks-are-getting-punished-for-ai-spending-but-har--25c4be85-3e8e-48d4-ae60-ead9a2f1fde5

While software and cloud giants like Microsoft are getting crushed by Wall Street for spending too much money, the companies that actually make the physical hardware—like TSMC and Micron—are reporting record profits. Investors should consider shifting away from software and into the 'picks and shovels' of the AI gold rush.

## Idea

Microsoft's stock is having its worst month in years specifically because investors are punishing the company for its massive capital spending on AI data centers. However, that exact spending is showing up as record revenue for hardware companies like Micron and TSMC. Rather than betting on who can build the best AI software, the smart money appears to be flowing to the foundational manufacturers who get paid regardless of which software wins.

## Advanced Analysis

### Verdict: The picks-and-shovels thesis has real receipts, but the trigger hasn't fired — wait

The core thesis has real evidence behind it: Micron's quarter ended 2026-05-28 showed revenue up 73.8% to $41.5B, gross margin of 84.6%, and free cash flow of $26.1B, while TSMC's fiscal 2024 revenue grew 33.9% to $2.89T NTD with free cash flow nearly tripling — exactly the 'picks and shovels' capex flow the idea argues for. The strongest point against is that this is one industry bet dressed as a pair trade: the MU–TSM correlation is only slightly negative at -0.11 over the 497-day window, both legs are semiconductor cyclicals, and Micron's own history shows net income swinging from +$14.1B in 2018 to -$5.8B in 2023 — the current quarter is a peak reading, not a steady state. The ownership tape adds a caution: filings for the period ended 2026-06-30 show net open-market selling of roughly $231.1M across 18 MU insiders, a delayed disclosure, versus modest net buying of about $370K at TSMC. Critically, this idea is not backtestable — the required MSFT 4-hour history was insufficient after data load, so no evaluable window exists and no robust parameter setup was established. The verdict is to wait: set alerts on MSFT's 4-hour RSI at 45 and the 38.2% retracement rather than pre-positioning in TSM or MU, and reassess when Microsoft's next AI-capex commentary lands with the September–October 2026 earnings cycle.

#### Conviction score breakdown

Composite score computed by the server from the applicable evidence-tier dimensions.

| Measure | Value |
| --- | ---: |
| Thesis support | 70/100 |
| Trade readiness | 30/100 |
| Risk quality | 40/100 |
| Fundamentals trend | 80/100 |
| Score | 55/100 |
| Composite Score | 55/100 |
| Evidence Tier | not\_backtestable |

#### Decision scenarios

Bull, base, and bear cases synthesized from the cited evidence tier. Likelihoods are rounded evidence-weighted judgments, not statistically calibrated forecasts.

| Measure | Value |
| --- | ---: |
| Evidence Tier | not\_backtestable |

### Trade now

This setup is a \*\*wait\*\*, not a buy. The planned entry is a short on Microsoft (the funded leg of the long-hardware/short-software pair): it triggers only when MSFT's 14-period RSI on the 4-hour chart drops below 45 \*\*and\*\* the close sits at or below the 38.2% Fibonacci retracement of the MSFT swing. The market data supplied for this idea covers MU and TSM, not MSFT, so no live MSFT RSI reading can be quoted here — neither entry condition can be confirmed as met, and the correct action today is to stand aside until the signal fires. For context, the hardware legs are running warm: MU's daily RSI is 56.3 with the stock at $958.16, above its 50 exit threshold, while TSM's daily RSI is 49.0 at $417.52, just under its 50 exit line.

If the entry does trigger, the risk envelope is explicit: the strategy caps loss at 2.5% per position and takes profit at roughly 5.1%, an effective reward-to-risk of about 2:1, with position size capped at 25% of capital and sizing set by a fixed-risk method anchored to the second support level. The idea's own thesis (published June 27, 2026) argues that investors are punishing Microsoft for AI data-center capex while that same spending flows to manufacturers — per the idea, TSMC and Micron "get paid regardless of which software wins."

One scope note: the rule set could not be evaluated on historical windows because the required MSFT 4-hour history was incomplete after data load, so no robust parameter setup was established and none is recommended here; the plan rests on the live rules and fundamentals, not on simulated results.

Concretely, "wait" means: set alerts on MSFT's 4-hour RSI at 45 and on price reaching the 38.2% retracement, and do not pre-position in TSM or MU as a substitute — the pair's economics depend on the short leg triggering alongside them.

#### MU price and trigger map

Uses the idea timeframe and keeps price levels on the price axis.

| Measure | Value |
| --- | ---: |
| Ticker | MU |
| Timeframe | 1d |

#### TSM price and trigger map

Uses the idea timeframe and keeps price levels on the price axis.

| Measure | Value |
| --- | ---: |
| Ticker | TSM |
| Timeframe | 1d |

### The picks-and-shovels trade: Micron's numbers say the capex is real

The idea's core claim — that AI data-center capex flows to hardware makers even when software names get punished — is exactly what Micron's latest reported quarter shows. For the quarter ended 2026-05-28, Micron posted $41.5B in revenue, up 73.8% from $23.9B the prior quarter, with gross margin climbing to 84.6% from 74.4% and net income jumping 104.9% to $28.2B. Free cash flow rose 205.7% to $26.1B, and debt-to-equity fell 61.3% to 0.05. Whatever you think of the AI trade, this is a supplier being paid handsomely for it. TSMC, the long leg of the pair, is the steadier version of the same story. Fiscal 2024 revenue grew 33.9% to $2.89T in NT dollars, net income grew 36% to $1.16T, and free cash flow nearly tripled to $870.2B. Its operating margin of 45.7% sits in the 98.9th percentile of 661 Information Technology peers, and free cash flow sits in the 99.9th percentile — the highest-quality cash machine in the sector, per the fundamentals panel. The news tape supports the direction: per the Yahoo Finance piece from June 25, 2026, TSMC's strong earnings demonstrate its key role in the AI-capex cycle, and per the MarketWatch story the same day, Microsoft suffered a historic June rout as investors balked at heavy spending. The pair's structure — long the manufacturer being paid, short the payer being punished — matches how the market is currently allocating capital. The balance-sheet evidence for the long leg is also strong: TSMC's debt-to-equity is 0.007, essentially unlevered, with $2.13T in cash against $1.31T in current liabilities and a current ratio of 2.36. That gives the long leg resilience if the AI trade wobbles. One…

#### TSM Revenue

Revenue trend from CommonQuant fundamentals/XBRL data; +243.1% from first to latest point.

| Measure | Value |
| --- | ---: |
| 2015-12-31 | $843497400000 |
| 2016-12-31 | $947938300000 |
| 2017-12-31 | $32977300000 |
| 2018-12-31 | $1031473600000 |
| 2019-12-31 | $1069985400000 |
| 2020-06-30 | $621295500000 |
| 2020-12-31 | $1339254800000 |
| 2021-06-30 | $734555400000 |
| 2021-12-31 | $1587415000000 |
| 2022-12-31 | $2263891300000 |
| 2023-12-31 | $2161735800000 |
| 2024-12-31 | $2894307700000 |
| Latest Value | $2894307700000 |
| Change Pct | $243.1317867725496 |
| Ticker | TSM |
| Timeframe | reported periods |

#### TSM Free cash flow

Free cash flow trend from CommonQuant fundamentals/XBRL data; +219.5% from first to latest point.

| Measure | Value |
| --- | ---: |
| 2015-12-31 | $272362600000 |
| 2016-12-31 | $211789300000 |
| 2017-12-31 | $8594200000 |
| 2018-12-31 | $258372400000 |
| 2019-12-31 | $154716500000 |
| 2020-06-30 | $54106300000 |
| 2020-12-31 | $315427500000 |
| 2021-06-30 | $255400000 |
| 2021-12-31 | $272965000000 |
| 2022-12-31 | $527927100000 |
| 2023-12-31 | $292150500000 |
| 2024-12-31 | $870170600000 |
| Latest Value | $870170600000 |
| Change Pct | $219.4897537327078 |
| Ticker | TSM |
| Timeframe | reported periods |

#### MU sector percentile check

Ranks MU against 612 companies in its sector using CommonQuant fundamentals.

| Measure | Value |
| --- | ---: |
| Free cash flow | \97.7124183006536th percentile |
| Operating margin | \94.40242057488652th percentile |
| Return on equity | \76.83284457478005th percentile |
| Revenue growth (YoY) | \71.14803625377644th percentile |
| Ticker | MU |
| Sector | Information Technology |
| Peer Count | 612 |

### Scores

- **Conviction score breakdown:** 55
- **Thesis support:** 70
- **Trade readiness:** 30
- **Risk quality:** 40
- **Fundamentals trend:** 80

### Watch items

- **MSFT — RSI (14), 4-hour**
- **MSFT — Close vs 38.2% Fibonacci retracement**
- **MU — Insider net open-market activity**
- **TSM — Insider net open-market activity**
- **MU — RSI (14), daily**
- **MU — Next quarterly report / XBRL refresh**
- **MU — Dividend ex-date**
- **TSM — Dividend ex-date**
- **MU — RSI (14) below 45**
- **MU — RSI (14) above 50**
- **TSM — RSI (14) below 45**
- **TSM — RSI (14) above 50**

## Key details

- Symbols: MU, TSM
- Timeframes: D1, H4
- Tags: \#ai, \#hardware, \#semiconductors

## Community

- Upvotes: 28
- Views: 59
- Copies: 0
- Cosigns: 0

## News sources

- [Microsoft's stock is suffering a historic June rout as investors balk at heavy spending](https://www.marketwatch.com/story/microsofts-stock-is-suffering-a-historic-june-rout-as-investors-balk-at-heavy-spending-9afaef1b?mod=mw_rss_topstories) — MarketWatch
- [Strong Earnings Demonstrate Taiwan Semiconductor Manufacturing Company Limited's (TSM) Key Role in The AI-Capex Cycle](https://finance.yahoo.com/markets/stocks/articles/strong-earnings-demonstrate-taiwan-semiconductor-165551769.html) — Yahoo Finance
- [Micron says the AI party is far from over, but not all are celebrating](https://www.cnbc.com/2026/06/25/micron-says-the-ai-party-is-far-from-over-but-not-all-are-celeferating.html) — CNBC

## Related

- [MU trade ideas](https://commonquant.ai/markets/mu)
- [TSM trade ideas](https://commonquant.ai/markets/tsm)
- [Latest market news](https://commonquant.ai/news)

## About CommonQuant Research

Ideas and Advanced Analysis are generated with fresh, LLM-selected news headlines and grounded in SEC XBRL fundamentals and peer percentiles. Strategies built from these ideas are automatically backtested (over a timeframe-dependent historical window with walk-forward tuning) and stress-tested before they can go live, then monitored against the news hourly while they run.
