PROTECTED SOURCE SCRIPT

XAUUSD Scalp

26
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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.