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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.