Gold was little changed on Tuesday, pressured by a robust dollar but supported by weak US economic data, with investors awaiting clearer signals on the Federal Reserve's trajectory for interest rates.
Spot gold was mostly unchanged at $1,424 per ounce as of 11:13 a.m. (1513 GMT), having touched a low of $1,413.80 earlier in the session.
Prices briefly popped higher following weaker-than-expected US home sales and monthly manufacturing data from the Richmond Fed.
US gold futures fell 0.2% to $1,424.20.
"The Richmond print raised a few eyebrows, though it's really not that important of a figure, but seemed to have triggered some buying," said Tai Wong, head of base and precious metals derivatives trading at BMO.
"Gold is likely to stay within the $1,415-35 range with the market getting all bulled up above $1,430 and hand-wringing below $1,420."
The dollar held near a five-week peak, supported by a deal to extend the US government's debt limit.
"I think gold is locked in a range here," said Ryan McKay, a commodity strategist at TD Securities. "Prices turned around when news of Boris Johnson being elected came in. There are allocations to gold just because of the risk of a no-deal Brexit."
Bullion narrowed losses following news that Boris Johnson, a pro-Brexit conservative, would replace Theresa May as Britain's new prime minister.
Johnson has promised to pull Britain out of the European Union before Oct. 31, either by securing a deal with the EU that is approved by Britain's parliament or leaving the bloc without a deal. Financial markets fear the latter course.
Investors also are eyeing the Fed's July 30-31 policy meeting at which it is expected to cut its overnight benchmark lending rate. The European Central Bank (ECB) is also expected to signal easier monetary policy when it meets on Thursday.
The repricing among investors in favor of a 25-basis-point Fed rate cut instead of a 50-point cut is constraining gold, McKay added.
Meanwhile, silver rose 0.7% to $16.45 an ounce.
"Silver has authenticated gold's rally ... What this has done is put the gold-silver ratio down to a level which you might not ordinarily expect, just below 87," said Ross Norman, chief executive at bullion dealer Sharps Pixley.
Holdings of the largest gold-backed ETF, New York's SPDR Gold Trust, rose 0.6% on Monday from Friday, while the largest silver-backed ETF, the iShares Silver Trust, rose 2.6% during the same period. Holdings in the silver ETF have risen about 10% so far this month.
Among other precious metals, palladium dipped 0.1% to $1,526.50 an ounce, while platinum rose 0.1% to $851.50 an ounce.