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.**
Skrip sumber terbuka
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Penafian
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Skrip sumber terbuka
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Penafian
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.