The tech-heavy Nasdaq rose 0.16% to 3,502.12 , its highest close since October 2000.

Gainers included Home Depot, the world's largest home improvement chain.

It rose more than 2% after it increased its profit forecast, helped by the continuing recovery in the US housing market.

Taxes

JPMorgan also gained 1.4% after the bank's chief executive, Jamie Dimon, won a shareholder vote to keep hin in place as chairman for another year.

Apple shares showed little reaction after its chief executive, Tim Cook, testified before a critical Congress after a US Senate report on the company's offshore tax structure.

It said the iPhone maker had kept billions of dollars in profits in Irish subsidiaries to reduce its tax bill, something the company denied.

Apple shares fell 0.7 %.

The New York Federal Reserve president, William Dudley, said he could not be sure whether policymakers would either reduce or increase the amount of purchases, because of the "uncertain" economic outlook.

The US central bank has been buying $85bn worth of bonds a month, something that has helped to keep share prices attractive to investors as returns on other investments, such as bonds, have remained weak.

The minutes of the Federal Reserve's latest policy-setting meeting will be released on Wednesday afternoon.