OPEN-SOURCE SCRIPT
Custom USD Index

This is a modernized, expanded version of the U.S. Dollar Index (DXY), designed to provide a more accurate representation of the dollar’s global strength in today’s diversified economy.
Unlike the traditional DXY, which excludes major players like China and entirely omits real-world stores of value, this custom index (DXY+) includes:
Fiat Currencies (78.3% total weight):
EUR, JPY, GBP, CAD, AUD, CHF, and CNY — equally weighted to reflect the global currency landscape.
Gold (17.5%):
Gold (XAUUSD) is included as a traditional reserve asset and inflation hedge, acknowledging its continued monetary relevance.
Cryptocurrencies (2.8% total weight):
Bitcoin (BTC) and Ethereum (ETH) represent the emerging digital monetary layer.
The index rises when the U.S. dollar strengthens relative to this blended basket, and falls when the dollar weakens against it. This is ideal for traders, economists, and macro analysts seeking a more inclusive and up-to-date measure of dollar performance.
Unlike the traditional DXY, which excludes major players like China and entirely omits real-world stores of value, this custom index (DXY+) includes:
Fiat Currencies (78.3% total weight):
EUR, JPY, GBP, CAD, AUD, CHF, and CNY — equally weighted to reflect the global currency landscape.
Gold (17.5%):
Gold (XAUUSD) is included as a traditional reserve asset and inflation hedge, acknowledging its continued monetary relevance.
Cryptocurrencies (2.8% total weight):
Bitcoin (BTC) and Ethereum (ETH) represent the emerging digital monetary layer.
The index rises when the U.S. dollar strengthens relative to this blended basket, and falls when the dollar weakens against it. This is ideal for traders, economists, and macro analysts seeking a more inclusive and up-to-date measure of dollar performance.
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.