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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.