OPEN-SOURCE SCRIPT
Kane's Global M2 + DXY Overlay

Kane's Global M2 + DXY Overlay
This indicator overlays a USD-converted Global M2 liquidity composite and the U.S. Dollar Index (DXY) directly onto the current chart, making it easier to compare Bitcoin price action against macro liquidity and dollar strength in one view.
The script combines major M2 money supply series into a single Global M2 line and converts non-USD components into USD for consistency. It also includes a DXY overlay so traders can track the inverse relationship that often appears between Bitcoin and dollar strength.
To make both series usable on a price chart, the indicator normalizes Global M2 and DXY into the chart’s price area instead of plotting their raw values.
Features
• Global M2 overlay converted into USD
• DXY overlay on the same chart
• Optional DXY inversion for cleaner BTC comparison
• Weekly Global M2 lead setting
• Optional smoothing for both M2 and DXY
• Price-area normalization for clean overlay viewing
• Designed for Bitcoin macro analysis
Default Setup
• Weekly chart
• Global M2 lead set to 10 weeks
• DXY inversion enabled
• Long normalization lookback for smoother macro comparison
How It Works
Global M2 is built from major money supply series and FX conversion into USD. The indicator then shifts Global M2 forward by the selected lead amount and maps both Global M2 and DXY into the visible BTC price range, allowing direct visual comparison.
Best Uses
• Comparing Bitcoin to global liquidity conditions
• Tracking BTC against dollar strength
• Studying macro-cycle alignment
• Building higher-timeframe confluence into analysis
Notes
This tool is designed for visual macro comparison, not direct trade execution signals. Because external macro series update on different schedules than BTC price, the overlays are best interpreted on higher timeframes.
This indicator overlays a USD-converted Global M2 liquidity composite and the U.S. Dollar Index (DXY) directly onto the current chart, making it easier to compare Bitcoin price action against macro liquidity and dollar strength in one view.
The script combines major M2 money supply series into a single Global M2 line and converts non-USD components into USD for consistency. It also includes a DXY overlay so traders can track the inverse relationship that often appears between Bitcoin and dollar strength.
To make both series usable on a price chart, the indicator normalizes Global M2 and DXY into the chart’s price area instead of plotting their raw values.
Features
• Global M2 overlay converted into USD
• DXY overlay on the same chart
• Optional DXY inversion for cleaner BTC comparison
• Weekly Global M2 lead setting
• Optional smoothing for both M2 and DXY
• Price-area normalization for clean overlay viewing
• Designed for Bitcoin macro analysis
Default Setup
• Weekly chart
• Global M2 lead set to 10 weeks
• DXY inversion enabled
• Long normalization lookback for smoother macro comparison
How It Works
Global M2 is built from major money supply series and FX conversion into USD. The indicator then shifts Global M2 forward by the selected lead amount and maps both Global M2 and DXY into the visible BTC price range, allowing direct visual comparison.
Best Uses
• Comparing Bitcoin to global liquidity conditions
• Tracking BTC against dollar strength
• Studying macro-cycle alignment
• Building higher-timeframe confluence into analysis
Notes
This tool is designed for visual macro comparison, not direct trade execution signals. Because external macro series update on different schedules than BTC price, the overlays are best interpreted on higher timeframes.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.