OPEN-SOURCE SCRIPT
Brewberry Funding Rate Trend

What it shows:
Histogram bars — the raw funding rate per 8-hour interval. Color-coded: bright red above 0.05%, orange above 0.03%, faded green for mild positive, blue for negative. The visual weight makes the current regime immediately obvious.
Yellow line (7-day MA) — this is the important one. The course says repeatedly that a single reading means nothing — it's the trend over 3-7+ days that tells you whether the structure is fragile. This line is that trend.
Purple line (21-day MA) — structural trend. Where the 7-day is above the 21-day and both are elevated, you're in a sustained crowding regime.
Background shading — red tint when 7-day MA crosses above 0.03% (danger zone), deeper red above 0.05% (extreme zone), blue tint when MA goes negative.
Threshold lines — dashed horizontal lines at 0.01%, 0.03%, and 0.05% per 8h with labels showing the annualized equivalent (10.95%, 32.85%, 54.75%).
Cumulative cost box — sums the actual funding paid over your lookback window. Shows the real dollar drain on a long position over the period.
Top-right table — current rate, annualized rate, 7-day avg APR, 21-day avg APR, cumulative cost. All in one glance.
Four built-in alerts — 7d MA enters danger zone, exits danger zone, hits extreme zone, and crosses below zero (short squeeze setup building).
To use on different assets: Change the Asset input from BTCUSDT to ETHUSDT, SOLUSDT, etc.
Histogram bars — the raw funding rate per 8-hour interval. Color-coded: bright red above 0.05%, orange above 0.03%, faded green for mild positive, blue for negative. The visual weight makes the current regime immediately obvious.
Yellow line (7-day MA) — this is the important one. The course says repeatedly that a single reading means nothing — it's the trend over 3-7+ days that tells you whether the structure is fragile. This line is that trend.
Purple line (21-day MA) — structural trend. Where the 7-day is above the 21-day and both are elevated, you're in a sustained crowding regime.
Background shading — red tint when 7-day MA crosses above 0.03% (danger zone), deeper red above 0.05% (extreme zone), blue tint when MA goes negative.
Threshold lines — dashed horizontal lines at 0.01%, 0.03%, and 0.05% per 8h with labels showing the annualized equivalent (10.95%, 32.85%, 54.75%).
Cumulative cost box — sums the actual funding paid over your lookback window. Shows the real dollar drain on a long position over the period.
Top-right table — current rate, annualized rate, 7-day avg APR, 21-day avg APR, cumulative cost. All in one glance.
Four built-in alerts — 7d MA enters danger zone, exits danger zone, hits extreme zone, and crosses below zero (short squeeze setup building).
To use on different assets: Change the Asset input from BTCUSDT to ETHUSDT, SOLUSDT, etc.
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.