Gold prices were flat on Thursday, as a steady U.S. dollar and elevated Treasury yields weighed on greenback-priced bullion, with the metal's outlook already dampened by an aggressive Federal Reserve stance on inflation.

Spot gold held its ground at $1,816.39 per ounce at 0242 GMT. U.S. gold futures edged 0.1% lower to $1,813.50.

Gold's daily closing price is effectively hugging the trendline projected from the March 2020 (pandemic) low, and intraday volatile spikes either side of that key trendline have lacked conviction to prompt a sustainable move, City Index's senior market analyst Matt Simpson said.

Bullion has largely seemed to track daily moves in the dollar and benchmark U.S. 10-year Treasury yields in recent weeks, with 20-year highs in the greenback pushing gold prices to their lowest in well over three months on Monday.

A stronger dollar makes gold less attractive for buyers holding other currencies. Gold's performance and outlook have also been under the cloud of an aggressive Fed monetary policy stance on rate hikes as the bank pushes to rein in soaring inflation.

Higher U.S. short-term interest rates and bond yields raise the opportunity cost of holding bullion, which yields nothing.

Fed Chair Jerome Powell on Tuesday pledged that the U.S. central bank would ratchet interest rates as high as needed to kill a surge in inflation that he said threatened the foundation of the economy.

"ETF (Exchange traded fund) flows peaked on the 27th of April and we've since seen a net outflow as investors have lost confidence in the yellow metal ... And the rout in stock markets simply added another reason for some investors to convert their gold to cash," Simpson said.

Spot silver edged up 0.1% to $21.41 per ounce, while platinum dropped 0.9% to $927.37, and palladium slipped 0.6% to $2,004.58.

(Reporting by Bharat Govind Gautam in Bengaluru; Editing by Sherry Jacob-Phillips)