OPEN-SOURCE SCRIPT
Stablecoin Total Index V3

**Stablecoin Total Index V4 - Full History + Full Coverage**
This indicator provides the **best of both worlds**: long historical data AND complete stablecoin coverage.
**How it works:**
- **Before May 2025:** Manual sum of 35 major stablecoins (~90% coverage)
- **After May 2025:** Switches to STABLE.C index (100 stablecoins, 100% coverage)
**Why this approach?**
TradingView's official STABLE.C index was only created on May 19, 2025. This indicator gives you **years of historical data** going back to 2017-2018, then seamlessly transitions to the official index for complete accuracy.
**Note:** There is a ~$30B jump at the May 2025 transition point. This is NOT an error - it represents the ~65 smaller stablecoins that are included in STABLE.C but don't have individual CRYPTOCAP symbols for manual tracking.
**Pre-May 2025 Coverage (35 stablecoins):**
- **Tier 1:** USDT, USDC
- **Tier 2:** DAI, USDe, USDS, FDUSD
- **Tier 3:** TUSD, USDP, GUSD, FRAX, PYUSD, LUSD, BUSD
- **Tier 4 (2024-2025):** USD1, RLUSD, GHO, crvUSD, sUSDe, USDY, USDM
- **Tier 5 (Euro):** EURC, EURT, EURS
- **Tier 6 (DeFi):** USDD, MIM, DOLA, OUSD, alUSD, sUSD, cUSD
- **Tier 7:** HUSD, USDX, USTC
- **Gold-Backed:** PAXG, XAUT
**Post-May 2025:** Full STABLE.C (100 stablecoins)
**Features:**
- Green/Red color based on direction
- 20-period SMA
- Reference lines at $100B, $200B, $300B
**Best used on Daily timeframe or higher.**
This indicator provides the **best of both worlds**: long historical data AND complete stablecoin coverage.
**How it works:**
- **Before May 2025:** Manual sum of 35 major stablecoins (~90% coverage)
- **After May 2025:** Switches to STABLE.C index (100 stablecoins, 100% coverage)
**Why this approach?**
TradingView's official STABLE.C index was only created on May 19, 2025. This indicator gives you **years of historical data** going back to 2017-2018, then seamlessly transitions to the official index for complete accuracy.
**Note:** There is a ~$30B jump at the May 2025 transition point. This is NOT an error - it represents the ~65 smaller stablecoins that are included in STABLE.C but don't have individual CRYPTOCAP symbols for manual tracking.
**Pre-May 2025 Coverage (35 stablecoins):**
- **Tier 1:** USDT, USDC
- **Tier 2:** DAI, USDe, USDS, FDUSD
- **Tier 3:** TUSD, USDP, GUSD, FRAX, PYUSD, LUSD, BUSD
- **Tier 4 (2024-2025):** USD1, RLUSD, GHO, crvUSD, sUSDe, USDY, USDM
- **Tier 5 (Euro):** EURC, EURT, EURS
- **Tier 6 (DeFi):** USDD, MIM, DOLA, OUSD, alUSD, sUSD, cUSD
- **Tier 7:** HUSD, USDX, USTC
- **Gold-Backed:** PAXG, XAUT
**Post-May 2025:** Full STABLE.C (100 stablecoins)
**Features:**
- Green/Red color based on direction
- 20-period SMA
- Reference lines at $100B, $200B, $300B
**Best used on Daily timeframe or higher.**
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.