Traders work on the floor of the New York Stock Exchange (NYSE) in New York City, U.S., January 26, 2022.
Traders work on the floor of the New York Stock Exchange (NYSE) in New York City, U.S., January 26, 2022. Reuters / BRENDAN MCDERMID

The S&P 500 and Nasdaq ended higher on Tuesday, with big growth shares rising after the previous day's selloff as Treasury yields eased.

At the same time, bank shares fell. The yield on the benchmark 10-year note tumbled from more than a three-year high to below 3%.

The day's trading was choppy, with major indexes moving between gains and losses as investors were also nervous ahead of the release of Wednesday's U.S. consumer price index data and Thursday's producer prices data.

Investors will be looking for signs that inflation is peaking.

Worries that the U.S. Federal Reserve may have to move more aggressively to curb inflation have driven the recent selloff in the market. A host of other concerns have added to the pressure.

"At this point, it's just fear-based selling," said Jake Dollarhide, chief executive officer of Longbow Asset Management in Tulsa, Oklahoma.

"It can't just be the Fed's going to raise rates to stave off inflation, because we've seen that before," he said. Instead, investors are worried about everything from rates and inflation to the war in Ukraine, supply chain problems and China's COVID-19 lockdowns, Dollarhide said.

Shares of Apple Inc were higher and giving the S&P 500 and Nasdaq their biggest boost. S&P 500 technology led gains among sectors in the S&P 500.

According to preliminary data, the S&P 500 gained 10.77 points, or 0.27%, to end at 4,002.01 points, while the Nasdaq Composite gained 114.11 points, or 0.98%, to 11,737.35. The Dow Jones Industrial Average fell 82.39 points, or 0.26%, to 32,163.31.

Investors digested comments from Cleveland Fed President Loretta Mester, who said the U.S. economy will experience turbulence from the Fed's efforts to bring down inflation running at more than three times above its goal and recent volatility in the stock market would not deter policymakers.

Peloton Interactive Inc tumbled as the fitness equipment maker warned the business was "thinly capitalized" after it posted a 23.6% slide in quarterly revenue.