OPEN-SOURCE SCRIPT
Coinbase Premium Barometer by tf1803

COINBASE PREMIUM — BAROMETER
WHAT IT DOES
This indicator measures the price difference between Coinbase — the regulated
US exchange where buyers pay in actual dollars — and an offshore reference
exchange quoted in USDT (Binance by default). That spread is a proxy for where
demand is coming from.
Above zero → Coinbase is more expensive. US buyers are paying up.
Below zero → Coinbase is cheaper. Selling pressure sits on the US side.
It is a context tool, not an entry signal. Its value lies in whether the spread
confirms or contradicts what price is doing.
HOW IT IS CALCULATED
Premium (USD) = Coinbase price − reference price
Premium (percent) = (Coinbase price − reference price) / reference price × 100
Both exchanges are requested on the timeframe of your chart, with no lookahead.
An optional USDT depeg adjustment converts the reference price into real dollars
via USDT/USD before comparing. This removes the portion of the spread that only
exists because the stablecoin itself is trading off its peg — useful during
periods of stablecoin stress, when a raw spread overstates the actual demand
imbalance.
FEATURES
- Absolute USD or percentage display
- Any symbol pair — works for ETH, SOL or anything listed on both venues
- Optional USDT depeg correction
- Signal moving average (EMA or SMA) to read the trend rather than the noise
- Extreme detection, either adaptive (standard deviation bands) or fixed
thresholds, with background shading
- Automatic trendlines connecting the last two pivot highs and pivot lows of
the premium itself, extended right — shows when a premium regime is losing
momentum before the zero line is crossed
- Markers at every zero crossing
- Info box with the current value, the signal MA and a Z-score
- Six alert conditions: zero crossings in both directions, signal MA crossings,
and entries into either extreme
HOW TO USE IT
Add it to a daily chart first. The daily is where the reading is cleanest; on
low timeframes the spread becomes noisy and the EMA smoothing input (try 5)
becomes necessary.
Then watch the relationship, not the number:
- Price rising while the premium stays negative — the move is not carried by US
spot demand. Weaker than it looks.
- Price rising with the premium turning positive — demand and price agree.
- Premium making higher lows while price chops sideways — accumulation building
under the surface. The automatic trendlines are there to make exactly this
visible.
- Extremes in either direction tend to mean-revert. They mark exhaustion more
often than continuation.
NOTES AND LIMITATIONS
Single spikes are noise. The signal is in the trend over days and weeks.
Part of any spread is structural rather than informational: USDT can trade off
its dollar peg, and the two venues differ in fees, liquidity and depth. The
depeg option addresses the first of these; the others remain.
The indicator reads the same on every chart it is applied to, because it pulls
both legs from the symbols set in the inputs rather than from the chart symbol.
This is a market-structure tool for context. It is not financial advice and
makes no claim about future prices.
COINBASE PREMIUM — BAROMETER
WAS ER MACHT
Der Indikator misst die Preisdifferenz zwischen Coinbase — der regulierten
US-Börse, an der in echten Dollar gekauft wird — und einer Offshore-Referenzbörse
in USDT (voreingestellt Binance). Diese Differenz ist ein Näherungsmaß dafür,
woher die Nachfrage gerade kommt.
Über null → Coinbase ist teurer. US-Käufer zahlen auf.
Unter null → Coinbase ist günstiger. Der Verkaufsdruck sitzt in den USA.
Es ist ein Kontextwerkzeug, kein Einstiegssignal. Der Wert liegt darin, ob die
Differenz bestätigt oder widerspricht, was der Preis tut.
BERECHNUNG
Premium (USD) = Coinbase-Preis − Referenzpreis
Premium (Prozent) = (Coinbase-Preis − Referenzpreis) / Referenzpreis × 100
Beide Börsen werden auf der Zeiteinheit des Charts abgefragt, ohne Lookahead.
Optional lässt sich der USDT-Depeg herausrechnen: Der Referenzpreis wird über
USDT/USD in echte Dollar umgerechnet, bevor verglichen wird. Das entfernt den
Anteil der Differenz, der nur daher kommt, dass der Stablecoin selbst von seiner
Bindung abweicht.
FUNKTIONEN
- Anzeige in absoluten USD oder in Prozent
- Beliebiges Symbolpaar — funktioniert für ETH, SOL und alles, was an beiden
Börsen gelistet ist
- Optionale USDT-Depeg-Korrektur
- Signal-MA (EMA oder SMA), um den Trend statt des Rauschens zu lesen
- Extremerkennung wahlweise adaptiv (Standardabweichungsbänder) oder über feste
Schwellen, mit Hintergrundfärbung
- Automatische Trendlinien auf dem Premium selbst, gezogen zwischen den letzten
beiden Pivot-Hochs bzw. -Tiefs und nach rechts verlängert — macht sichtbar,
wenn eine Phase ausläuft, bevor die Nulllinie gekreuzt wird
- Markierungen an jedem Nulldurchgang
- Info-Box mit aktuellem Wert, Signal-MA und Z-Score
- Sechs Alarmbedingungen: Nulldurchgänge in beide Richtungen, MA-Kreuzungen und
das Erreichen beider Extrembereiche
ANWENDUNG
Zuerst auf dem Tageschart. Dort ist die Ablesung am saubersten; auf kleinen
Zeiteinheiten wird die Differenz verrauscht, dann ist die EMA-Glättung nötig
(Startwert 5).
Dann auf das Verhältnis achten, nicht auf die Zahl:
- Preis steigt, Premium bleibt negativ — die Bewegung wird nicht von US-Spot-
Nachfrage getragen. Schwächer, als sie aussieht.
- Preis steigt und das Premium dreht ins Positive — Nachfrage und Preis stimmen
überein.
- Premium bildet höhere Tiefs, während der Preis seitwärts läuft — darunter baut
sich etwas auf. Genau dafür sind die automatischen Trendlinien da.
- Extreme in beide Richtungen neigen zur Rückkehr zum Mittel. Sie markieren
häufiger Erschöpfung als Fortsetzung.
HINWEISE UND GRENZEN
Einzelne Ausschläge sind Rauschen. Die Aussage liegt im Verlauf über Tage bis
Wochen.
Ein Teil jeder Differenz ist strukturell und nicht informativ: USDT kann von der
Dollarbindung abweichen, und die beiden Börsen unterscheiden sich in Gebühren,
Liquidität und Markttiefe. Die Depeg-Option adressiert den ersten Punkt, die
übrigen bleiben.
Der Indikator zeigt auf jedem Chart dasselbe, weil er beide Seiten aus den in
den Einstellungen gesetzten Symbolen zieht und nicht aus dem Chartsymbol.
Ein Werkzeug zur Marktstruktur-Einordnung. Keine Anlageberatung und keine
Aussage über künftige Kurse.
WHAT IT DOES
This indicator measures the price difference between Coinbase — the regulated
US exchange where buyers pay in actual dollars — and an offshore reference
exchange quoted in USDT (Binance by default). That spread is a proxy for where
demand is coming from.
Above zero → Coinbase is more expensive. US buyers are paying up.
Below zero → Coinbase is cheaper. Selling pressure sits on the US side.
It is a context tool, not an entry signal. Its value lies in whether the spread
confirms or contradicts what price is doing.
HOW IT IS CALCULATED
Premium (USD) = Coinbase price − reference price
Premium (percent) = (Coinbase price − reference price) / reference price × 100
Both exchanges are requested on the timeframe of your chart, with no lookahead.
An optional USDT depeg adjustment converts the reference price into real dollars
via USDT/USD before comparing. This removes the portion of the spread that only
exists because the stablecoin itself is trading off its peg — useful during
periods of stablecoin stress, when a raw spread overstates the actual demand
imbalance.
FEATURES
- Absolute USD or percentage display
- Any symbol pair — works for ETH, SOL or anything listed on both venues
- Optional USDT depeg correction
- Signal moving average (EMA or SMA) to read the trend rather than the noise
- Extreme detection, either adaptive (standard deviation bands) or fixed
thresholds, with background shading
- Automatic trendlines connecting the last two pivot highs and pivot lows of
the premium itself, extended right — shows when a premium regime is losing
momentum before the zero line is crossed
- Markers at every zero crossing
- Info box with the current value, the signal MA and a Z-score
- Six alert conditions: zero crossings in both directions, signal MA crossings,
and entries into either extreme
HOW TO USE IT
Add it to a daily chart first. The daily is where the reading is cleanest; on
low timeframes the spread becomes noisy and the EMA smoothing input (try 5)
becomes necessary.
Then watch the relationship, not the number:
- Price rising while the premium stays negative — the move is not carried by US
spot demand. Weaker than it looks.
- Price rising with the premium turning positive — demand and price agree.
- Premium making higher lows while price chops sideways — accumulation building
under the surface. The automatic trendlines are there to make exactly this
visible.
- Extremes in either direction tend to mean-revert. They mark exhaustion more
often than continuation.
NOTES AND LIMITATIONS
Single spikes are noise. The signal is in the trend over days and weeks.
Part of any spread is structural rather than informational: USDT can trade off
its dollar peg, and the two venues differ in fees, liquidity and depth. The
depeg option addresses the first of these; the others remain.
The indicator reads the same on every chart it is applied to, because it pulls
both legs from the symbols set in the inputs rather than from the chart symbol.
This is a market-structure tool for context. It is not financial advice and
makes no claim about future prices.
COINBASE PREMIUM — BAROMETER
WAS ER MACHT
Der Indikator misst die Preisdifferenz zwischen Coinbase — der regulierten
US-Börse, an der in echten Dollar gekauft wird — und einer Offshore-Referenzbörse
in USDT (voreingestellt Binance). Diese Differenz ist ein Näherungsmaß dafür,
woher die Nachfrage gerade kommt.
Über null → Coinbase ist teurer. US-Käufer zahlen auf.
Unter null → Coinbase ist günstiger. Der Verkaufsdruck sitzt in den USA.
Es ist ein Kontextwerkzeug, kein Einstiegssignal. Der Wert liegt darin, ob die
Differenz bestätigt oder widerspricht, was der Preis tut.
BERECHNUNG
Premium (USD) = Coinbase-Preis − Referenzpreis
Premium (Prozent) = (Coinbase-Preis − Referenzpreis) / Referenzpreis × 100
Beide Börsen werden auf der Zeiteinheit des Charts abgefragt, ohne Lookahead.
Optional lässt sich der USDT-Depeg herausrechnen: Der Referenzpreis wird über
USDT/USD in echte Dollar umgerechnet, bevor verglichen wird. Das entfernt den
Anteil der Differenz, der nur daher kommt, dass der Stablecoin selbst von seiner
Bindung abweicht.
FUNKTIONEN
- Anzeige in absoluten USD oder in Prozent
- Beliebiges Symbolpaar — funktioniert für ETH, SOL und alles, was an beiden
Börsen gelistet ist
- Optionale USDT-Depeg-Korrektur
- Signal-MA (EMA oder SMA), um den Trend statt des Rauschens zu lesen
- Extremerkennung wahlweise adaptiv (Standardabweichungsbänder) oder über feste
Schwellen, mit Hintergrundfärbung
- Automatische Trendlinien auf dem Premium selbst, gezogen zwischen den letzten
beiden Pivot-Hochs bzw. -Tiefs und nach rechts verlängert — macht sichtbar,
wenn eine Phase ausläuft, bevor die Nulllinie gekreuzt wird
- Markierungen an jedem Nulldurchgang
- Info-Box mit aktuellem Wert, Signal-MA und Z-Score
- Sechs Alarmbedingungen: Nulldurchgänge in beide Richtungen, MA-Kreuzungen und
das Erreichen beider Extrembereiche
ANWENDUNG
Zuerst auf dem Tageschart. Dort ist die Ablesung am saubersten; auf kleinen
Zeiteinheiten wird die Differenz verrauscht, dann ist die EMA-Glättung nötig
(Startwert 5).
Dann auf das Verhältnis achten, nicht auf die Zahl:
- Preis steigt, Premium bleibt negativ — die Bewegung wird nicht von US-Spot-
Nachfrage getragen. Schwächer, als sie aussieht.
- Preis steigt und das Premium dreht ins Positive — Nachfrage und Preis stimmen
überein.
- Premium bildet höhere Tiefs, während der Preis seitwärts läuft — darunter baut
sich etwas auf. Genau dafür sind die automatischen Trendlinien da.
- Extreme in beide Richtungen neigen zur Rückkehr zum Mittel. Sie markieren
häufiger Erschöpfung als Fortsetzung.
HINWEISE UND GRENZEN
Einzelne Ausschläge sind Rauschen. Die Aussage liegt im Verlauf über Tage bis
Wochen.
Ein Teil jeder Differenz ist strukturell und nicht informativ: USDT kann von der
Dollarbindung abweichen, und die beiden Börsen unterscheiden sich in Gebühren,
Liquidität und Markttiefe. Die Depeg-Option adressiert den ersten Punkt, die
übrigen bleiben.
Der Indikator zeigt auf jedem Chart dasselbe, weil er beide Seiten aus den in
den Einstellungen gesetzten Symbolen zieht und nicht aus dem Chartsymbol.
Ein Werkzeug zur Marktstruktur-Einordnung. Keine Anlageberatung und keine
Aussage über künftige Kurse.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.