Major U.S. indices closed higher on Tuesday, with the Dow Jones Industrial Average edging up 0.02% to 52,508.27. The S&P 500 gained 0.38% to finish at 7,543.59, while the Nasdaq advanced 0.9% to 26,107.01.

Stocks traded with a firmer tone as cooler-than-expected inflation data lifted risk appetite and eased pressure on the Federal Reserve.

Expectations were reinforced that policymakers can hold rates steady later this month, helping investors look past recent inflation worries. That backdrop gave equities room to extend gains, even as geopolitical energy risks and sticky service prices kept caution in the market.

These are the top stocks that gained the attention of retail traders and investors throughout the day.

International Business Machines Corporation (NYSE:IBM)