OPEN-SOURCE SCRIPT
Global Net Liquidity - Offset

Purpose
This indicator tracks the combined balance-sheet liquidity provided by the world’s five largest central banks, then subtracts the U.S. Treasury General Account (TGA) and the Fed’s Reverse Repo Facility (RRP).
The result is a high-level proxy for global US-dollar availability that many market participants see leading risk-asset trends.
Formula
Fed Assets (FRED: WALCL)
+ BoJ Assets × USDJPY
+ PBoC Assets × USDCNY
+ BoE Assets × USDGBP
+ ECB Assets × USDEUR
– Fed RRP (FRED: RRPONTSYD)
– Treasury General Account (FRED: WTREGEN)
All series are converted to USD and summed on a daily basis.
What’s new in this version
Plot Offset – Shift the curve forward or backward ±500 trading days (positive = future) to visualise the commonly cited 10 to 12 week lead/lag between liquidity and equity indices.
Optional Smoothing – Apply either a Simple Moving Average (SMA) or Exponential Moving Average (EMA) of any length to damp daily noise and focus on structural turns.
How to use it
This indicator tracks the combined balance-sheet liquidity provided by the world’s five largest central banks, then subtracts the U.S. Treasury General Account (TGA) and the Fed’s Reverse Repo Facility (RRP).
The result is a high-level proxy for global US-dollar availability that many market participants see leading risk-asset trends.
Formula
Fed Assets (FRED: WALCL)
+ BoJ Assets × USDJPY
+ PBoC Assets × USDCNY
+ BoE Assets × USDGBP
+ ECB Assets × USDEUR
– Fed RRP (FRED: RRPONTSYD)
– Treasury General Account (FRED: WTREGEN)
All series are converted to USD and summed on a daily basis.
What’s new in this version
Plot Offset – Shift the curve forward or backward ±500 trading days (positive = future) to visualise the commonly cited 10 to 12 week lead/lag between liquidity and equity indices.
Optional Smoothing – Apply either a Simple Moving Average (SMA) or Exponential Moving Average (EMA) of any length to damp daily noise and focus on structural turns.
How to use it
- Add the script to a separate pane on a daily-time-frame chart (e.g., SPX, BTC-USD).
- Adjust Plot Offset until major peaks/troughs in liquidity line up with market turns; many traders start near +50 trading days.
- Optionally Toggle Apply Smoothing and choose SMA or EMA when abrupt central-bank balance-sheet moves create visual “spikes.”
Credits & licence
Originally published as “Global Net Liquidity” by dharmatech under the Mozilla Public License 2.0. This fork by LabOfCrypto adds offset and smoothing, plus minor usability tweaks. It remains open-source under the MPL-2.0.
Disclaimer
For educational purposes only. Past liquidity patterns do not guarantee future market behaviour; always combine with sound risk management.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。