OPEN-SOURCE SCRIPT
Gold Live Dashboard

To trade Gold effectively, you need to understand that it isn't just a commodity; it's the world's oldest anti-currency. It moves based on how much people trust (or distrust) the US Dollar and the return they can get from "risk-free" government debt.
1. The DXY (The "Price Tag" Factor)Gold is priced in US Dollars (XXAU/USD$).The Relationship: Generally Inverse. When the Dollar gets stronger (DXY goes up), Gold becomes more expensive for people using other currencies (like Euros or Yen) to buy. This kills demand and drops the price.The Trade: If the DXY is ripping higher, trying to long Gold is like swimming against a tsunami. You want to see the DXY stalling or dropping before you look for Gold entries.
2. The 2-Year Yield (The "Fed" Factor)The 2-Year Treasury yield is the market’s "crystal ball" for what the Federal Reserve is going to do with interest rates over the next several months.Why it matters: It is highly sensitive to monetary policy. If the 2-Year yield is spiking, the market is pricing in rate hikes or a "higher for longer" stance from the Fed.The Impact: Higher rates make the Dollar more attractive to hold, which indirectly pressures Gold. If the 2-Year yield is falling, the market expects "cheap money" is coming back, which is fuel for Gold.
3. The 10-Year Yield (The "Opportunity Cost" Factor)The 10-Year is the global benchmark for "risk-free" return.The Battle for Cash: Gold is a "non-yielding" asset—it doesn't pay you a monthly check or interest just for holding it.The Logic: If the 10-Year yield is high (say 4.5% or 5%), big institutional investors would rather park their billions in "guaranteed" government bonds than sit on Gold.The Impact: When the 10-Year yield falls, the "opportunity cost" of holding Gold disappears, making it much more attractive for big money to rotate back into the metal.
Summary Table for your
DXY Up 🔴 BAD Makes Gold more expensive globally.
2-YR Up 🔴 BAD Signals the Fed is staying "Hawkish"
10-YR Up🔴 BAD Bonds are paying more; people sell Gold to buy Bonds.
1. The DXY (The "Price Tag" Factor)Gold is priced in US Dollars (XXAU/USD$).The Relationship: Generally Inverse. When the Dollar gets stronger (DXY goes up), Gold becomes more expensive for people using other currencies (like Euros or Yen) to buy. This kills demand and drops the price.The Trade: If the DXY is ripping higher, trying to long Gold is like swimming against a tsunami. You want to see the DXY stalling or dropping before you look for Gold entries.
2. The 2-Year Yield (The "Fed" Factor)The 2-Year Treasury yield is the market’s "crystal ball" for what the Federal Reserve is going to do with interest rates over the next several months.Why it matters: It is highly sensitive to monetary policy. If the 2-Year yield is spiking, the market is pricing in rate hikes or a "higher for longer" stance from the Fed.The Impact: Higher rates make the Dollar more attractive to hold, which indirectly pressures Gold. If the 2-Year yield is falling, the market expects "cheap money" is coming back, which is fuel for Gold.
3. The 10-Year Yield (The "Opportunity Cost" Factor)The 10-Year is the global benchmark for "risk-free" return.The Battle for Cash: Gold is a "non-yielding" asset—it doesn't pay you a monthly check or interest just for holding it.The Logic: If the 10-Year yield is high (say 4.5% or 5%), big institutional investors would rather park their billions in "guaranteed" government bonds than sit on Gold.The Impact: When the 10-Year yield falls, the "opportunity cost" of holding Gold disappears, making it much more attractive for big money to rotate back into the metal.
Summary Table for your
DXY Up 🔴 BAD Makes Gold more expensive globally.
2-YR Up 🔴 BAD Signals the Fed is staying "Hawkish"
10-YR Up🔴 BAD Bonds are paying more; people sell Gold to buy Bonds.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.