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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.