OPEN-SOURCE SCRIPT
Bitcoin Relative Strength: BTC vs Any Asset [Customizable]

# Bitcoin Relative Strength: BTC vs Any Asset [Customizable]
## ๐ Description
**Compare Bitcoin's performance against ANY asset on TradingView** โ S&P 500, Nasdaq, Gold, DXY, Ethereum, or any other ticker of your choice.
This indicator calculates and plots the **BTC / Asset ratio**, showing how many units of the chosen comparison asset one Bitcoin is worth. A rising ratio means Bitcoin is outperforming the selected asset; a falling ratio means it is underperforming.
### ๐ Key Features
- **BTC vs Any Asset** โ select any TradingView ticker as the comparison asset (SPX, NDX, GOLD, DXY, ETH, and more)
- **Dual Moving Averages** โ EMA / SMA / WMA / VWMA / RMA with customizable lengths to identify trend direction
- **Bollinger Bands** โ detect volatility compression and breakout zones on the ratio
- **RSI of Ratio** โ identify overbought / oversold conditions in relative strength
- **Percentage Change** โ adjustable lookback period (1โ365 days) to quantify recent momentum
- **Trend Coloring** โ dynamic bullish / bearish / neutral coloring based on ratio vs MA
- **Fill Zones** โ optional fill between the ratio line and MA for easy visual trend spotting
- **Info Table** โ real-time data panel showing ratio, individual prices, % change, trend, and MA values
- **Built-in Alerts** โ MA crossovers, Golden / Death crosses, Bollinger breakouts, and RSI extremes
- **Fully Customizable** โ colors, line widths, transparency, table position, text size, and more
### ๐ How to Use
1. **Add the indicator** to any chart.
2. Open **Settings โ Data Sources** and choose your preferred Bitcoin ticker (e.g., BINANCE:BTCUSD) and comparison asset (e.g., SP:SPX, TVC:GOLD, FOREXCOM:DXY).
3. Enable optional overlays: Moving Averages, Bollinger Bands, RSI, or the Info Table.
4. Set alerts for key events like MA crossovers or Bollinger breakouts.
### ๐ก Interpretation
| Ratio Direction | Meaning |
|---|---|
| ๐ Rising | Bitcoin outperforms the comparison asset |
| ๐ Falling | Bitcoin underperforms the comparison asset |
| โฒ Above MA | Bullish relative trend |
| โผ Below MA | Bearish relative trend |
| Golden Cross (MA1 ร MA2) | Long-term bullish shift |
| Death Cross (MA1 ร MA2) | Long-term bearish shift |
### โ ๏ธ Disclaimer
This indicator is for **educational and informational purposes only**. It does not constitute financial advice. Always do your own research before making investment decisions.
**Indicator by:** iCD_creator
**Version:** 1.0
**Pine Scriptโข Version:** 6
---
Updates & Support
For questions, suggestions, or bug reports, please comment below or message the author.
**Like this indicator? Leave a ๐ and share your feedback!**
---
**#Bitcoin #BTC #RelativeStrength #BTCRatio #BTCvsSPX #BTCvsGold #BTCvsDXY #BTCvsETH #CryptoAnalysis #TechnicalAnalysis #TradingView #PineScript #Cryptocurrency #BitcoinDominance #CryptoIndicator #BTCStrength #MacroAnalysis #RatioChart #BitcoinVs #IntermarketAnalysis #CryptoTrading #BTCTrend #BTCSentiment #BitcoinPerformance #AltcoinRatio**
## ๐ Description
**Compare Bitcoin's performance against ANY asset on TradingView** โ S&P 500, Nasdaq, Gold, DXY, Ethereum, or any other ticker of your choice.
This indicator calculates and plots the **BTC / Asset ratio**, showing how many units of the chosen comparison asset one Bitcoin is worth. A rising ratio means Bitcoin is outperforming the selected asset; a falling ratio means it is underperforming.
### ๐ Key Features
- **BTC vs Any Asset** โ select any TradingView ticker as the comparison asset (SPX, NDX, GOLD, DXY, ETH, and more)
- **Dual Moving Averages** โ EMA / SMA / WMA / VWMA / RMA with customizable lengths to identify trend direction
- **Bollinger Bands** โ detect volatility compression and breakout zones on the ratio
- **RSI of Ratio** โ identify overbought / oversold conditions in relative strength
- **Percentage Change** โ adjustable lookback period (1โ365 days) to quantify recent momentum
- **Trend Coloring** โ dynamic bullish / bearish / neutral coloring based on ratio vs MA
- **Fill Zones** โ optional fill between the ratio line and MA for easy visual trend spotting
- **Info Table** โ real-time data panel showing ratio, individual prices, % change, trend, and MA values
- **Built-in Alerts** โ MA crossovers, Golden / Death crosses, Bollinger breakouts, and RSI extremes
- **Fully Customizable** โ colors, line widths, transparency, table position, text size, and more
### ๐ How to Use
1. **Add the indicator** to any chart.
2. Open **Settings โ Data Sources** and choose your preferred Bitcoin ticker (e.g., BINANCE:BTCUSD) and comparison asset (e.g., SP:SPX, TVC:GOLD, FOREXCOM:DXY).
3. Enable optional overlays: Moving Averages, Bollinger Bands, RSI, or the Info Table.
4. Set alerts for key events like MA crossovers or Bollinger breakouts.
### ๐ก Interpretation
| Ratio Direction | Meaning |
|---|---|
| ๐ Rising | Bitcoin outperforms the comparison asset |
| ๐ Falling | Bitcoin underperforms the comparison asset |
| โฒ Above MA | Bullish relative trend |
| โผ Below MA | Bearish relative trend |
| Golden Cross (MA1 ร MA2) | Long-term bullish shift |
| Death Cross (MA1 ร MA2) | Long-term bearish shift |
### โ ๏ธ Disclaimer
This indicator is for **educational and informational purposes only**. It does not constitute financial advice. Always do your own research before making investment decisions.
**Indicator by:** iCD_creator
**Version:** 1.0
**Pine Scriptโข Version:** 6
---
Updates & Support
For questions, suggestions, or bug reports, please comment below or message the author.
**Like this indicator? Leave a ๐ and share your feedback!**
---
**#Bitcoin #BTC #RelativeStrength #BTCRatio #BTCvsSPX #BTCvsGold #BTCvsDXY #BTCvsETH #CryptoAnalysis #TechnicalAnalysis #TradingView #PineScript #Cryptocurrency #BitcoinDominance #CryptoIndicator #BTCStrength #MacroAnalysis #RatioChart #BitcoinVs #IntermarketAnalysis #CryptoTrading #BTCTrend #BTCSentiment #BitcoinPerformance #AltcoinRatio**
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.