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 de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.