OPEN-SOURCE SCRIPT
Actualizado Blockcircle Global Central Bank Balance Sheet and Money Supply

OVERVIEW
This indicator aggregates money supply (M2) and central bank balance sheet data from the world's largest economies into a single, unified view of global liquidity conditions. Rather than manually tracking dozens of separate data feeds or building your own aggregation logic, you get a ready-to-use tool that pulls from FRED, TradingView Economics, and real-time FX rates to convert everything into USD terms automatically.
Global liquidity has historically served as a leading indicator for risk assets. When central banks expand their balance sheets and the money supply grows, capital tends to flow into equities, crypto, and other risk-on assets. When liquidity contracts, markets often follow. This indicator gives you that macro context directly on your chart.
The global liquidity movement (expansionary or contractionary) often leads to asset price appreciation/depreciation in
BTC,
SPX, etc

WHAT MAKES IT ORIGINAL AND DIFFERENT
HOW IT WORKS
The indicator requests monthly M2 data from TradingView's Economics feeds for each included country. Central bank balance sheet data is pulled the same way. All non-USD values are converted using daily FX rates from major currency pairs. The script then sums these converted values to produce the Global M2 and Global CBBS lines.
For US liquidity specifically, the script pulls weekly data for the Reverse Repo Program (RRP) and Treasury General Account (TGA) from FRED. Net Liquidity is calculated as: Fed Balance Sheet minus RRP minus TGA. This formula removes funds parked in reverse repos and Treasury cash balances, showing what is actually circulating in the financial system.

KEY FEATURES
HOW TO USE

SETTINGS BREAKDOWN
IMPORTANT CONSIDERATIONS
Hope you find it useful and impactful to your trading and investment decisions! If you have any questions at all, please just ask, happy to help
This indicator aggregates money supply (M2) and central bank balance sheet data from the world's largest economies into a single, unified view of global liquidity conditions. Rather than manually tracking dozens of separate data feeds or building your own aggregation logic, you get a ready-to-use tool that pulls from FRED, TradingView Economics, and real-time FX rates to convert everything into USD terms automatically.
Global liquidity has historically served as a leading indicator for risk assets. When central banks expand their balance sheets and the money supply grows, capital tends to flow into equities, crypto, and other risk-on assets. When liquidity contracts, markets often follow. This indicator gives you that macro context directly on your chart.
The global liquidity movement (expansionary or contractionary) often leads to asset price appreciation/depreciation in
WHAT MAKES IT ORIGINAL AND DIFFERENT
- Combines both M2 money supply AND central bank balance sheet data in one place, whereas most existing tools focus on only one metric
- Aggregates 11 economies for M2 (USA, EU, China, Japan, UK, Canada, India, Russia, Brazil, Australia, Switzerland) and 10 central banks for balance sheet data
- Automatically handles currency conversion using live FX rates so all values display in USD
- Includes a dedicated US Net Liquidity calculation (Fed Balance Sheet minus Reverse Repo minus TGA) which filters out temporary distortions that other aggregate tools ignore
- Provides granular country by country breakdown in the information table so you can identify which central banks are driving the aggregate trend
- Offers four moving average types (SMA, EMA, WMA, RMA) for trend smoothing with configurable length
HOW IT WORKS
The indicator requests monthly M2 data from TradingView's Economics feeds for each included country. Central bank balance sheet data is pulled the same way. All non-USD values are converted using daily FX rates from major currency pairs. The script then sums these converted values to produce the Global M2 and Global CBBS lines.
For US liquidity specifically, the script pulls weekly data for the Reverse Repo Program (RRP) and Treasury General Account (TGA) from FRED. Net Liquidity is calculated as: Fed Balance Sheet minus RRP minus TGA. This formula removes funds parked in reverse repos and Treasury cash balances, showing what is actually circulating in the financial system.
KEY FEATURES
- Global M2 Money Supply line tracking 11 major economies with individual toggles for each country
- Global Central Bank Balance Sheet line tracking 10 central banks with individual toggles
- US-specific components, including Reverse Repo, TGA, and Net Liquidity as separate plot lines
- Moving average overlays with selectable type and length for identifying trend direction
- Fill the option between M2 and CBBS lines to visualize the gap between money supply and central bank assets
- Value labels at line endpoints showing current readings and period-over-period percentage change
- Comprehensive information table with optional country breakdown view
- Full color customization for all lines, configurable line width, and style options
- Alert conditions for significant M2 and CBBS changes plus MA crossover signals
HOW TO USE
- Add to any chart and observe the overall direction of global liquidity. Rising lines generally support risk on positioning, while declining lines suggest caution
- Watch for divergences between the M2 and CBBS lines. If money supply grows faster than central bank assets, private credit may be expanding. If CBBS rises faster, central banks are actively injecting liquidity
- Use the US Net Liquidity line to understand short term dollar liquidity conditions separate from longer term global trends
- Enable moving averages to filter noise and identify when liquidity trends are changing direction
- Toggle individual countries on or off in the settings to see how specific regions contribute to the total
- Reference the information table for exact values and percentage changes without leaving your chart
SETTINGS BREAKDOWN
- Table Settings: position, text size, and whether to show the country breakdown
- Display Settings: toggle visibility for each line, fill area, value labels, percent labels, and the info table
- Line Styling: customize colors for each metric, adjust line width, and select solid, dashed, or dotted style
- Moving Average: enable or disable MA overlays for M2 and CBBS, select MA type, and set length
- Global M2 Countries: individually enable or disable each of the 11 economies
- US Liquidity Components: toggle RRP and TGA data
- Global CBBS Countries: individually enable or disable each of the 10 central banks
- Alerts: set percentage threshold for change based alerts
IMPORTANT CONSIDERATIONS
- Data updates depend on the publication schedule of each source. M2 and CBBS data are typically monthly with some delay. US Fed Balance Sheet, US RRP and US TGA update weekly
- FX conversion uses daily close rates which may introduce minor discrepancies during volatile currency periods
- Some emerging market data may have longer reporting lags than developed market data
Hope you find it useful and impactful to your trading and investment decisions! If you have any questions at all, please just ask, happy to help
Notas de prensa
Key Updates- Optimized naming convention
- Added Period-over-period percentage change (green for positive, red for negative)
- Directional arrow indicator
- Tabular structure is clearer now
Hope you are finding it useful!
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.
Start your free trial at blockcircle.com -> No hype, no hopium, just data.
Designed and Built by Basel Ismail @ Blockcircle, previously Director of Product Engineering @ American Express and Goldman Sachs
Designed and Built by Basel Ismail @ Blockcircle, previously Director of Product Engineering @ American Express and Goldman Sachs
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.
Start your free trial at blockcircle.com -> No hype, no hopium, just data.
Designed and Built by Basel Ismail @ Blockcircle, previously Director of Product Engineering @ American Express and Goldman Sachs
Designed and Built by Basel Ismail @ Blockcircle, previously Director of Product Engineering @ American Express and Goldman Sachs
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.