Gold had what looked like a supportive backdrop on Tuesday, with the dollar falling against every major currency and long-term Treasury yields easing. Yet the metal still ended the day in the red, a sign of just how cautious traders are ahead of Wednesday's U.S. inflation report.

Spot gold slipped about 0.3% to trade near $4,160 an ounce, down roughly $12 on the day. Silver fared worse, sliding nearly 2% to around $59.13. Gold prices were mixed into early Wednesday trade as attention stayed firmly on the CPI data.

The intraday path tells the story. Gold climbed toward $4,200 during the Asian session as yields and the dollar dipped. It then gave those gains back in the U.S. morning, when the 10-year Treasury yield and the dollar index bounced off their lows and oil prices rallied on Middle East supply worries. The metal found a floor near $4,150 in the afternoon and recovered some ground after New York Fed President John Williams' comments pushed yields lower again. On Tuesday, gold's moves tracked Treasury yields much more closely than the dollar.

Why didn't a weaker dollar help more? The likely answer is the Fed. Higher energy costs are expected to push September's headline inflation to around 3.6%, and several Fed officials, including Boston Fed President Susan Collins, still back another rate hike before year-end. Because gold doesn't pay any interest, it tends to struggle when markets expect higher rates. With the 10-year yield sitting above 5.2%, the cost of holding a non-yielding asset is unusually high, and traders appear reluctant to add exposure until they see whether inflation is broadening beyond energy.

That said, the bigger picture for gold remains firm. The metal is still trading above $4,100, supported by ongoing geopolitical risk tied to the Iran conflict, attacks on shipping near the Strait of Hormuz and the escalating Saudi-Houthi confrontation. Technically, chart watchers at BabyPips noted that gold recently broke above a longer-term trend line and may be forming a reversal pattern on shorter timeframes, though they flagged that confirmation is still needed.

Wednesday's CPI report is the key test. Forecasters see core inflation rising about 0.2% month over month. A softer core figure would support Williams' view that tightening could end soon, which would likely ease pressure on yields and could give gold room to rebound. A hotter number, around 0.24% or higher, would strengthen the case for a hike at the Fed's October 27-28 meeting or in December, and could push the metal back toward recent lows. Traders will also be watching the Fed's Beige Book later in the day and any fresh developments in the Middle East.