XAUUSD Divergence Pro is a specialized momentum–correlation indicator designed to identify high-probability divergence opportunities in Gold by comparing XAUUSD strength against a synthetic USD Index. Instead of relying on a single oscillator, it intelligently contrasts the RSI of Gold with a weighted basket of major USD pairs, providing a deeper view of relative strength between Gold and the US Dollar.

The indicator is plotted in a separate window and displays two RSI lines: Gold RSI (gold color) and USD Index RSI (blue color). The core signal comes from the divergence histogram. Green bars indicate bullish divergence, where Gold strength is increasing relative to the USD, while red bars indicate bearish divergence, signaling USD strength over Gold. A configurable threshold filters out weak signals, making it particularly suited to Gold’s volatile behavior.

The USD Index is calculated dynamically using seven major currency pairs with optimized weights for Gold correlation. Automatic inversion is applied where USD is the base currency, ensuring accurate strength calculations. The indicator is non-repainting and processes only completed price data.