The script measures the stablecoin ratio (total stablecoin market cap divided by total crypto market cap, times 100) and its weekly change. Stablecoins (e.g., USDT, USDC) are a key gateway for capital entering or exiting the crypto ecosystem.
A rising ratio suggests more capital is parked in stablecoins (potential buying power), while a falling ratio indicates capital leaving (selling or withdrawal).
In a macro analysis, this is critical—it reflects the availability of liquid funds that could fuel price movements.
In macroeconomics, liquidity is a driver of asset prices. In crypto, stablecoins represent sidelined capital ready to deploy.