Wall Street had ended Monday's volatile session slightly higher with help from technology stocks although bank stocks tumbled and uncertainty over Britain's exit from the European Union kept investors on edge about global growth.

The energy index was the S&P's biggest percentage loser as oil prices declined and financial stocks tumbled with the S&P 500 bank index confirming it was in bear territory. But a comeback in Apple Inc shares appeared to cheer up investors in the broader technology sector.

Once the S&P neared its 2018 low - reached on February 8 - trading algorithms appeared to kick in with buy signals, according to strategists. After hitting a session low late in the morning the benchmark spent the rest of the day paring losses at an uneven pace before turning positive.

“It seems we've found a temporary support at those levels. It might explain a little bit the reversal,” said David Joy, Ameriprise Chief Market Strategist. “It tells me it's very short term computer driven trading, very choppy and directionless.”

British Prime Minister Theresa May had added a wrinkle to global uncertainty on Monday by delaying a planned vote in Parliament on her Brexit deal, saying it was set to be rejected ”by a significant margin”. “That adds to the political confusion that's weighing on the market globally,” said Joy.

The Dow Jones Industrial Average rose 34.31 points, or 0.14 per cent, to 24,423.26, the S&P 500 gained 4.64 points, or 0.18 per cent, to 2,637.72 and the Nasdaq Composite added 51.27 points, or 0.74 per cent, to 7,020.52.

After a sea of red in the morning, eight of the 11 major S&P sectors closed higher. Technology sector led the gainers with a 1.4 percent gain followed with a 0.8 per cent increase in the communications sector. Energy stocks retreated 1.6 per cent, the most among the 11 S&P sectors as oil prices fell.

The second biggest decline was a 1.4 per cent drop in financials as investors worried about the impact on slowing global growth and interest rates on banks. The rate-sensitive bank sub-sector tumbled 2.3 per cent.

“What bank investors are doing is looking forward at what these guys are going to do for an encore as far as earnings growth goes,” said Sandler O'Neill analyst Jeffery Harte.

“If you look at the line items, credit probably can't get much better. They've had interest rate tail winds. Loan growth seems to have slowed so the concern is what's going to drive the next leg up.”

Apple Inc closed up 0.7 per cent at $169.60 after hitting a low of $163.33 earlier in the day after Qualcomm Inc said it had won a preliminary order from a Chinese court banning the import and sale of several iPhone models in China due to patent violations.

The small-cap Russell 2000 also pulled above its session low to close 0.3 per cent lower and was 16.9 per cent below its record closing high on August 31. Declining issues outnumbered advancing ones on the NYSE by a 2.17-to-1 ratio; on Nasdaq, a 1.47-to-1 ratio favoured decliners.

The S&P 500 posted 4 new 52-week highs and 90 new lows; the Nasdaq Composite recorded 9 new highs and 383 new lows. Volume on US exchanges was 8.40 billion shares, compared with the 8.01 billion average for the last 20 trading days.