OPEN-SOURCE SCRIPT

BTC/Fiat Divergence & Spread Monitor

157
📄 BTC/Fiat Divergence & Spread Monitor
This indicator visualizes Bitcoin’s relative performance across multiple fiat currencies and highlights periods of unusual divergence. It helps traders assess which fiat pairs BTC has outperformed or underperformed over a configurable lookback period and monitor the dynamic spread between the strongest and weakest pairs.

Features:
Relative Performance Matrix:
Ranks BTC returns in 6 fiat pairs, displaying a color-coded table of percentage changes and ranks.

Divergence Spread Oscillator:
Calculates the spread between the top and bottom performing pairs and normalizes this using a Z-Score. The oscillator helps identify when fiat pricing divergence is unusually high or compressed.

Dynamic Smoothing:
Optional Hull Moving Average smoothing to reduce noise in the spread signal.

Customizable Inputs:

Lookback period for percent change.

Z-Score normalization window.

Smoothing length.

Symbol selection for each fiat pair.

Visual Mode Toggle:
Switch between relative performance lines and spread oscillator view.

Potential Use Cases:
Fiat Rotation:
Identify which fiat is relatively weak or strong to optimize your exit currency when taking BTC profits.

Volatility Detection:
Use the spread Z-Score to detect periods of high divergence across fiat pairs, signaling macro FX volatility or dislocations.

Regime Analysis:
Track when fiat spreads are converging or expanding, potentially signaling market regime shifts.

Risk Management:
When divergence is extreme (Z-Score > +1), consider reducing position sizing or waiting for reversion.

Disclaimer:
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security or asset. Always do your own research and consult a qualified financial professional before making trading decisions. Use at your own risk.


Tip:
Experiment with different lookback periods and smoothing settings to adapt the indicator to your timeframe and trading style.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.