OPEN-SOURCE SCRIPT

Bitcoin Relative Strength: BTC vs Any Asset [Customizable]

621
# 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**

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.