OPEN-SOURCE SCRIPT
Net USD Liquidity w/ overlays [tedtalksmacro]

This script aggregates and analyses total USD market liquidity in trillions of dollars - albeit with lagged, weekly data (live data is not available in TradingView!)
There's a positive correlation with the total liquidity available in the world's largest economy and risk assets like BITSTAMP:BTCUSD
The formula for net liquidity is as follows and uses account balances at the Fed and of the Treasury's General Account:
Fed Balance Sheet ECONOMICS:USCBBS — Accepted Reverse Repo Bids FRED:RRPONTTLD — Treasury General Account Balance FRED:WTREGEN
This script shows positive prints when liquidity is above it's 7 day EMA and negative when below... don't use this on timeframes lower than the 1D chart!
There's a positive correlation with the total liquidity available in the world's largest economy and risk assets like BITSTAMP:BTCUSD
The formula for net liquidity is as follows and uses account balances at the Fed and of the Treasury's General Account:
Fed Balance Sheet ECONOMICS:USCBBS — Accepted Reverse Repo Bids FRED:RRPONTTLD — Treasury General Account Balance FRED:WTREGEN
This script shows positive prints when liquidity is above it's 7 day EMA and negative when below... don't use this on timeframes lower than the 1D chart!
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.