OPEN-SOURCE SCRIPT
Telah dikemas kini Milman's Crypto Breadth: % Above MA

Select the interval (100DMA and 200DMA recommended) and enjoy the power of b r e a d t h !
Nota Keluaran
Crypto Breadth: % Above Moving Average (Top 40, CRYPTOCAP)
This indicator measures the percentage of the top 40 non-stablecoin cryptocurrencies currently trading above a user-defined moving average, using TradingView's CRYPTOCAP: feed for exchange-neutral market-cap data. It functions as a macro sentiment gauge — a single number that tells you how broad or narrow the prevailing trend is across the crypto market.
Stablecoins (USDT, USDC, BUSD, DAI) and wrapped tokens (WBTC, WETH) are intentionally excluded, as they would distort the reading. The 40-asset limit reflects Pine Script's request.security() cap per script.
Reading the indicator
Above 80% → broad bull market; the majority of assets are in an uptrend
20–80% → neutral/transitional zone
Below 20% → broad bear market; the majority of assets are in a downtrend
The yellow signal line is an EMA of the breadth value itself. Crossovers above or below it can serve as entry and exit triggers. The histogram color shifts to green above the overbought threshold, red below the oversold threshold, and grey in between.
Divergences are the highest-value signal. If price makes a new high while breadth is falling, the rally is narrowing — a warning sign. If price makes a new low while breadth is rising, selling pressure is becoming more selective — a potential bottoming signal.
User-adjustable settings:
Setting --- Default --- Notes
MA Length --- 200 --- Bars of history used for the moving average
MA Type --- SMA --- Switch to EMA for a more reactive average
Signal EMA Length --- 10 --- Smoothing period for the yellow signal line
Bull Level --- 80% --- Upper threshold; green zone trigger
Bear Level --- 20% --- Lower threshold; red zone trigger
Recommended configurations:
Daily + SMA 200 → macro market health (default, recommended)
Daily + EMA 50 → swing trading regime filter
Weekly + SMA 20 → multi-month cycle view
Assets tracked (40 total)
BTC, ETH, BNB, SOL, XRP, ADA, AVAX, DOGE, TON, TRX, LINK, DOT, MATIC, SHIB, LTC, BCH, UNI, ATOM, XLM, ETC, APT, NEAR, ICP, FIL, ARB, OP, HBAR, VET, ALGO, EGLD, AAVE, FTM, EOS, MKR, THETA, SAND, MANA, AXS, HYPE, SUI
Note 1: Top 40 assets tracked do not automatically update.
Note 2: The indicator displays the aggregate count and percentage only — it does not name individual coins above or below the MA. To identify specific coins, use TradingView's built-in Crypto Screener with an "Above MA(200)" filter.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.