US stocks have finished with modest gains helped by firm buying in tech stocks, after a day spent mostly well in the red.

US stocks have finished with modest gains helped by firm buying in tech stocks, after a day spent mostly well in the red.