PROTECTED SOURCE SCRIPT
XAUUSD Scalp

1. The Core Logic: "What Moves Gold?"
The indicator calculates a Total Score based on five macroeconomic drivers. Gold typically rises when these factors weaken (hence, most are inverted):
DXY (US Dollar Index): Inverted. When the Dollar drops, Gold usually rises.
TNX (10Y Yields): Inverted. Lower yields make non-yielding Gold more attractive.
Real Yields: Inverted (calculated via FRED data). The strongest long-term driver for Gold.
VIX (Fear Index): Direct. Higher market fear leads to "Safe Haven" Gold buying.
Oil (Crude): Direct. Oil acts as an inflation proxy; rising oil often pulls Gold higher.
2. Dashboard Interpretation (Top Right)
Score (Numerical): A Z-Score (standard deviation). Values above 0.22 are bullish (Long), below -0.22 are bearish (Short).
Trend Arrows: Real-time momentum. A green "up" arrow means that specific factor is currently moving in favor of a Gold rally.
Status Text:
STRONG LONG/SHORT: Massive confirmation across almost all macro data.
SCALP LONG/SHORT: Trend confirmation is present.
CHOP: Conflicting or neutral data. No trade zone.
3. Signals & Symbols
Triangles (Green/Red): These are your Entry Signals. They appear when the weighted average of all macro factors (Total Score) crosses the 0.22 threshold.
The Crown Symbol (👑): This is the "Ultimate Match." It appears only when DXY and VIX provide extreme simultaneous confirmation. These are considered the highest-probability signals.
4. Integrated Trade Management
Upon a signal, the script draws three lines:
Yellow (Entry): Your execution price.
Green (TP): Take Profit target (Default: 1.8x ATR).
Red (SL): Stop Loss (Default: 1.0x ATR).
Automated Logic: The script includes a Break-Even and Trailing system. As price moves into profit, the red SL line automatically moves to entry or trails the price to lock in gains.
5. Quick Start Guide
Timeframe: Best used on lower timeframes (1m to 15m) for active scalping.
Filtering: Ignore signals if the dashboard shows "CHOP".
Execution: Look for the 👑 (Crown) for high-conviction trades. If a green triangle appears AND the Crown is active, the macro "wind" is at your back.
Exit: Trust the automated lines (SL/TP) or close manually if the "Total Score" on the dashboard changes color (trend reversal).
Note: Since the script pulls data from external symbols (DXY, FRED, TNX), you may see a brief "Requesting Data" delay when first loading.
The indicator calculates a Total Score based on five macroeconomic drivers. Gold typically rises when these factors weaken (hence, most are inverted):
DXY (US Dollar Index): Inverted. When the Dollar drops, Gold usually rises.
TNX (10Y Yields): Inverted. Lower yields make non-yielding Gold more attractive.
Real Yields: Inverted (calculated via FRED data). The strongest long-term driver for Gold.
VIX (Fear Index): Direct. Higher market fear leads to "Safe Haven" Gold buying.
Oil (Crude): Direct. Oil acts as an inflation proxy; rising oil often pulls Gold higher.
2. Dashboard Interpretation (Top Right)
Score (Numerical): A Z-Score (standard deviation). Values above 0.22 are bullish (Long), below -0.22 are bearish (Short).
Trend Arrows: Real-time momentum. A green "up" arrow means that specific factor is currently moving in favor of a Gold rally.
Status Text:
STRONG LONG/SHORT: Massive confirmation across almost all macro data.
SCALP LONG/SHORT: Trend confirmation is present.
CHOP: Conflicting or neutral data. No trade zone.
3. Signals & Symbols
Triangles (Green/Red): These are your Entry Signals. They appear when the weighted average of all macro factors (Total Score) crosses the 0.22 threshold.
The Crown Symbol (👑): This is the "Ultimate Match." It appears only when DXY and VIX provide extreme simultaneous confirmation. These are considered the highest-probability signals.
4. Integrated Trade Management
Upon a signal, the script draws three lines:
Yellow (Entry): Your execution price.
Green (TP): Take Profit target (Default: 1.8x ATR).
Red (SL): Stop Loss (Default: 1.0x ATR).
Automated Logic: The script includes a Break-Even and Trailing system. As price moves into profit, the red SL line automatically moves to entry or trails the price to lock in gains.
5. Quick Start Guide
Timeframe: Best used on lower timeframes (1m to 15m) for active scalping.
Filtering: Ignore signals if the dashboard shows "CHOP".
Execution: Look for the 👑 (Crown) for high-conviction trades. If a green triangle appears AND the Crown is active, the macro "wind" is at your back.
Exit: Trust the automated lines (SL/TP) or close manually if the "Total Score" on the dashboard changes color (trend reversal).
Note: Since the script pulls data from external symbols (DXY, FRED, TNX), you may see a brief "Requesting Data" delay when first loading.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน