OPEN-SOURCE SCRIPT
Big Tech AI vs AI Semi Market Cap

[The Story Behind This Indicator]
Recently, Big Tech stocks have faced downward pressure due to growing concerns over whether they can sustain massive AI CapEx and ultimately achieve monetization. In contrast, AI-related semiconductor stocks—the direct recipients of these investment funds—are rebounding and gaining momentum.
Some market participants compare this flow to the Dot-com bubble era. I created this script to track in real-time whether a true "Market Cap Flipping" (reversal) is occurring between the AI Service providers (Big Tech) and the AI Infrastructure providers (Semiconductors).
[How It Works]
This indicator aggregates and compares the total Market Capitalization (Price × Shares Outstanding) of two distinct groups:
🟦 Big Tech (AI Solutions & Services): The companies spending heavily on AI infrastructure.
🟧 AI Semiconductors (Hardware & Infra): The companies benefiting from Big Tech's CapEx.
[Key Features]
Real-time Comparison: Visualizes the aggregate value of both sectors on a single chart to spot divergence or convergence.
Cap Flipping Watch: Easily identify if the "Hardware" sector's valuation overtakes the "Solution" sector.
Percentage Ratio: Displays a label showing the Semiconductor sector's size relative to Big Tech (e.g., "Semi is 60% of Tech").
Customizable Tickers: You can toggle individual companies On/Off in the settings to adjust your basket.
[Included Tickers (Default)]
Big Tech: MSFT, GOOGL, AMZN, META, AAPL, TSLA, PLTR, ORCL, ADBE
AI Semi: NVDA, TSM, AVGO, AMD, MU, ARM, ASML, ANET, MRVL
[Usage Note]
If the Orange Line (Semi) rises while the Blue Line (Tech) falls/stagnates, it indicates the market is favoring "Infrastructure Builders" over "Service Providers."
Use this to gauge the maturity of the AI investment cycle.
Recently, Big Tech stocks have faced downward pressure due to growing concerns over whether they can sustain massive AI CapEx and ultimately achieve monetization. In contrast, AI-related semiconductor stocks—the direct recipients of these investment funds—are rebounding and gaining momentum.
Some market participants compare this flow to the Dot-com bubble era. I created this script to track in real-time whether a true "Market Cap Flipping" (reversal) is occurring between the AI Service providers (Big Tech) and the AI Infrastructure providers (Semiconductors).
[How It Works]
This indicator aggregates and compares the total Market Capitalization (Price × Shares Outstanding) of two distinct groups:
🟦 Big Tech (AI Solutions & Services): The companies spending heavily on AI infrastructure.
🟧 AI Semiconductors (Hardware & Infra): The companies benefiting from Big Tech's CapEx.
[Key Features]
Real-time Comparison: Visualizes the aggregate value of both sectors on a single chart to spot divergence or convergence.
Cap Flipping Watch: Easily identify if the "Hardware" sector's valuation overtakes the "Solution" sector.
Percentage Ratio: Displays a label showing the Semiconductor sector's size relative to Big Tech (e.g., "Semi is 60% of Tech").
Customizable Tickers: You can toggle individual companies On/Off in the settings to adjust your basket.
[Included Tickers (Default)]
Big Tech: MSFT, GOOGL, AMZN, META, AAPL, TSLA, PLTR, ORCL, ADBE
AI Semi: NVDA, TSM, AVGO, AMD, MU, ARM, ASML, ANET, MRVL
[Usage Note]
If the Orange Line (Semi) rises while the Blue Line (Tech) falls/stagnates, it indicates the market is favoring "Infrastructure Builders" over "Service Providers."
Use this to gauge the maturity of the AI investment cycle.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.