OPEN-SOURCE SCRIPT
Smooth BTCSPL [GiudiceQuantico] – Dual Smoothed MAs

Smooth BTCSPL – Dual Smoothed MAs
What it measures
• % of Bitcoin addresses in profit vs loss (on-chain tickers).
• Spread = profit % − loss % → quick aggregate-sentiment gauge.
• Optional alpha-decay normalisation ⇒ keeps the curve on a 0-1 scale across cycles.
User inputs
• Use Alpha-Decay Adjusted Input (true/false).
• Fast MA – type (SMA / EMA / WMA / VWMA) & length (default 100).
• Slow MA – type & length (default 200).
• Colours – Bullish (#00ffbb) / Bearish (magenta).
Computation flow
1. Fetch daily on-chain series.
2. Build raw spread.
3. If alpha-decay enabled:
alpha = (rawSpread − 140-week rolling min) / (1 − rolling min).
4. Smooth chosen base with Fast & Slow MAs.
5. Bullish when Fast > Slow, bearish otherwise.
6. Bars tinted with the same bull/bear colour.
How to read
• Fast crosses above Slow → rising “addresses-in-profit” momentum → bullish bias.
• Fast crosses below Slow → stress / capitulation risk.
• Price-indicator divergences can flag exhaustion or hidden accumulation.
Tips
• Keep in a separate pane (overlay = false); bar-colouring still shows on price chart.
• Shorter lengths for swing trades, longer for macro outlook.
• Combine with funding rates, NUPL or simple price-MA crossovers for confirmation.
What it measures
• % of Bitcoin addresses in profit vs loss (on-chain tickers).
• Spread = profit % − loss % → quick aggregate-sentiment gauge.
• Optional alpha-decay normalisation ⇒ keeps the curve on a 0-1 scale across cycles.
User inputs
• Use Alpha-Decay Adjusted Input (true/false).
• Fast MA – type (SMA / EMA / WMA / VWMA) & length (default 100).
• Slow MA – type & length (default 200).
• Colours – Bullish (#00ffbb) / Bearish (magenta).
Computation flow
1. Fetch daily on-chain series.
2. Build raw spread.
3. If alpha-decay enabled:
alpha = (rawSpread − 140-week rolling min) / (1 − rolling min).
4. Smooth chosen base with Fast & Slow MAs.
5. Bullish when Fast > Slow, bearish otherwise.
6. Bars tinted with the same bull/bear colour.
How to read
• Fast crosses above Slow → rising “addresses-in-profit” momentum → bullish bias.
• Fast crosses below Slow → stress / capitulation risk.
• Price-indicator divergences can flag exhaustion or hidden accumulation.
Tips
• Keep in a separate pane (overlay = false); bar-colouring still shows on price chart.
• Shorter lengths for swing trades, longer for macro outlook.
• Combine with funding rates, NUPL or simple price-MA crossovers for confirmation.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
GQ
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
GQ
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.