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**
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.