Gold futures on Friday booked a solid gain for the session, helping the commodity mark its third straight weekly advance, as choppiness in stocks, a tepid U.S. dollar and rapidly receding yields proved a bullish cocktail for bullion. August gold /zigman2/quotes/210034565/delayed GC00 -1.06% traded $10.40, or 0.6%, higher to settle at $1,810.60 an ounce, with a weekly advance of 1.53%, based on last Friday's closing level. The weekly gain was the metal's third in a row and its sharpest since the week ended May 21, FactSet data show, underscoring an uptrend taking hold in the yellow metal. A so-called golden cross formed it gold's chart earlier in the week. A weaker dollar was likely the main catalyst for gold's gains. The dollar /zigman2/quotes/210598269/delayed DXY +0.20% was down 0.2% on Friday and down to flat on the week. A weaker dollar can make assets priced in the currency comparatively more expensive to buyers using other monetary units. Contributing to the upswing for gold was a rally in bonds, which sent long-dated yields, notably the 10-year Treasury note /zigman2/quotes/211347051/realtime BX:TMUBMUSD10Y +0.46% and the 30-year bond /zigman2/quotes/211347052/realtime BX:TMUBMUSD30Y -0.10% . to lows not seen since February, diminishing the opportunity cost of owning nonyielding gold over bonds. The upbeat mood in haven gold came even as the Dow Jones Industrial Average /zigman2/quotes/210598065/realtime DJIA +0.81% , the S&P 500 index /zigman2/quotes/210599714/realtime SPX +1.36% and the Nasdaq Composite Index /zigman2/quotes/210598365/realtime COMP +2.06% were all staging a rebound from Thursday's yield-inspired selloff.