OPEN-SOURCE SCRIPT

BTC Spread Indicator

Updated
"Hot potato, Bitcoin style!

In the dynamic world of cryptocurrency, keeping an eye on price movements across different exchanges can be as exhilarating as a game of hot potato. By calculating the average Bitcoin price across major exchanges, we can then dive deeper to identify the spreads between this global average and the prices on individual exchanges. This analysis reveals who's currently 'holding the potato'—or dealing with higher prices—and predicts who might be next. It's a fun, yet insightful way to visualize market volatility and trading opportunities. Let's see where the potato lands next!"
Release Notes
**Changes Made:**

1. **Outlier Removal**:
- Implemented Z-score based outlier detection and removal for a cleaner spread analysis.

2. **Global Asset Correlation**:
- Added analysis for correlations between BTC spreads and global assets: QQQ, DXY, and SPY.
- Introduced a smart entry condition influenced by the correlation with QQQ.

3. **Toggle Features**:
- Added toggles to show/hide EMAs and global asset correlations:
- `toggleEMA`: Toggle visibility of EMAs for BTC spreads.
- `showDXY`: Toggle visibility of correlation with DXY.
- `showQQQ`: Toggle visibility of correlation with QQQ.
- `showSPY`: Toggle visibility of correlation with SPY.
Release Notes
Minor typo fixes with toggles.
Standard Deviation

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer