OPEN-SOURCE SCRIPT
Telah dikemas kini US Liquidity-Weighted Business Cycle

๐ BTC Liquidity-Weighted Business Cycle
This indicator models the Bitcoin macro cycle by comparing its logarithmic price against a log-transformed liquidity proxy (e.g., US M2 Money Supply). It helps visualize cyclical tops and bottoms by measuring the relative expansion of Bitcoin price versus fiat liquidity.
๐ง How It Works:
Transforms both BTC and M2 using natural logarithms.
Computes a liquidity ratio: log(BTC) โ log(M2) (i.e., log(BTC/M2)).
Runs MACD on this ratio to extract business cycle momentum.
Plots:
๐ด Histogram bars showing cyclical growth or contraction.
๐ข Top line to track the relative price-to-liquidity trend.
๐ด Cycle peak markers to flag historical market tops.
โ๏ธ Inputs:
Adjustable MACD lengths
Toggle for liquidity trend line overlay
๐ Use Cases:
Identifying macro cycle tops and bottoms
Timing long-term Bitcoin accumulation or de-risking
Confirming global liquidity's influence on BTC price movement
Note: This version currently uses US M2 (FRED:M2SL) as the liquidity base. You can easily expand it with other global M2 sources or adjust the weights.
This indicator models the Bitcoin macro cycle by comparing its logarithmic price against a log-transformed liquidity proxy (e.g., US M2 Money Supply). It helps visualize cyclical tops and bottoms by measuring the relative expansion of Bitcoin price versus fiat liquidity.
๐ง How It Works:
Transforms both BTC and M2 using natural logarithms.
Computes a liquidity ratio: log(BTC) โ log(M2) (i.e., log(BTC/M2)).
Runs MACD on this ratio to extract business cycle momentum.
Plots:
๐ด Histogram bars showing cyclical growth or contraction.
๐ข Top line to track the relative price-to-liquidity trend.
๐ด Cycle peak markers to flag historical market tops.
โ๏ธ Inputs:
Adjustable MACD lengths
Toggle for liquidity trend line overlay
๐ Use Cases:
Identifying macro cycle tops and bottoms
Timing long-term Bitcoin accumulation or de-risking
Confirming global liquidity's influence on BTC price movement
Note: This version currently uses US M2 (FRED:M2SL) as the liquidity base. You can easily expand it with other global M2 sources or adjust the weights.
Nota Keluaran
BTC Liquidity-Weighted Business CycleThis indicator models Bitcoinโs macro cycle by comparing its logarithmic price to a log-transformed liquidity proxy, such as US M2 Money Supply (FRED:M2SL). The aim is to highlight cyclical expansions and contractions by tracking how Bitcoinโs price evolves relative to fiat liquidity growth.
Technical Explanation
Log Transformation: Both BTC price and M2 liquidity are expressed in natural logarithms to capture proportional changes rather than raw levels.
Liquidity Ratio: The indicator evaluates Bitcoinโs performance relative to liquidity growth by comparing log(BTC) against log(M2).
MACD Framework: A Moving Average Convergence Divergence model is applied to the ratio to extract cycle momentum, with adjustable lengths.
Visual Outputs:
Histogram bars show expansion (positive momentum) or contraction (negative momentum).
An optional overlay line tracks the long-term BTC-to-liquidity trend.
Peak markers flag potential cycle tops.
User-Friendly Overview
Think of this as a Bitcoin business cycle tracker.
When the histogram is positive, BTC is expanding faster than liquidity (risk-on conditions).
When itโs negative, BTC is underperforming liquidity (risk-off conditions).
Cycle markers give an idea of when long-term tops and bottoms may form.
Use Cases
Spotting macro cycle tops and bottoms in Bitcoin
Timing accumulation or profit-taking windows
Understanding how monetary expansion or contraction affects BTC price action
Notes
The default version uses US M2 (FRED:M2SL) as the liquidity base. Traders may extend the framework to include additional global M2 sources or custom liquidity indices with user-defined weights.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.