OPEN-SOURCE SCRIPT
BTC Flow Dashboard : Spot Premium + OI + Funding + Cycle Signals

Spot Premium vs Perpetual Basket (%):
Tracks how aggressively perps are trading relative to spot, a leading indicator of speculative activity and leverage buildup.
Aggregated Open Interest Z-Score:
A normalized view of OI expansion/contraction across major exchanges (Binance, BitMEX, Bybit, Kraken, etc.), highlighting when leverage enters overheated zones.
Composite Funding Rate Analysis:
Calculates a TWAP-smoothed funding composite across major venues, with optional APR scaling, showing where perpetual markets are paying for long or short exposure.
Confluence Signal Engine:
Dynamically flags bullish or bearish market conditions based on premium behavior and leverage environment — including over-leverage warnings that often precede volatility spikes.
Extreme Cycle Tops & Bottoms (Experimental):
Optional signal module that highlights historically significant extremes (e.g., 2020 bottom or 2021 top) based on statistical Z-score thresholds across the three core metrics.
Notes & Tips
Works best on weekly or monthly timeframes for macro cycle analysis.
Daily and 3D views provide short-term leverage context but may produce more frequent signals.
The Extreme Signal Engine is experimental — not a trading signal on its own, but a contextual tool to support macro decision-making.
Tracks how aggressively perps are trading relative to spot, a leading indicator of speculative activity and leverage buildup.
Aggregated Open Interest Z-Score:
A normalized view of OI expansion/contraction across major exchanges (Binance, BitMEX, Bybit, Kraken, etc.), highlighting when leverage enters overheated zones.
Composite Funding Rate Analysis:
Calculates a TWAP-smoothed funding composite across major venues, with optional APR scaling, showing where perpetual markets are paying for long or short exposure.
Confluence Signal Engine:
Dynamically flags bullish or bearish market conditions based on premium behavior and leverage environment — including over-leverage warnings that often precede volatility spikes.
Extreme Cycle Tops & Bottoms (Experimental):
Optional signal module that highlights historically significant extremes (e.g., 2020 bottom or 2021 top) based on statistical Z-score thresholds across the three core metrics.
Notes & Tips
Works best on weekly or monthly timeframes for macro cycle analysis.
Daily and 3D views provide short-term leverage context but may produce more frequent signals.
The Extreme Signal Engine is experimental — not a trading signal on its own, but a contextual tool to support macro decision-making.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.