An increase in Facebook pushed the Nasdaq to a record high on Friday, and the S&P; 500 also rose after major US banks kicked off the fourth-quarter earnings season with strong results.
Wall Street has surged since President-elect Trump's unexpected election victory on optimism he will cut corporate taxes, spend on infrastructure and deregulate banks.
With stocks trading at price-to-earnings valuations well above historical averages, many investors believe further gains will depend on S&P; 500 companies handing in strong report cards over the next several weeks.
Major banks on Friday did not disappoint: Bank of America , JPMorgan and Wells Fargo all posted quarterly profits above analysts' expectations. They also expressed optimism about 2017 in their first public comments about earnings since Trump won the election in November.
Their shares surged over 2 per cent but later gave up most of those gains. Wells Fargo ended 1.4-per cent higher and JPMorgan added 0.5 per cent.
The S&P; financial sector has jumped about 17 per cent since the election, far outpacing the S&P; 500's 6-per cent rise.
"Earnings are key going forward, and we're off to a decent start," said Mike Baele, managing director with the Private Client Reserve of US Bank in Portland, Oregon.
The Dow dipped marginally, with Wal-Mart Stores and other consumer stocks down after a report showed US retail sales and core retail sales increased less than expected in December.
Trading volumes were light, with financial markets closed on Monday for Martin Luther King Jr. Day.
The Nasdaq Composite added 0.5 per cent to a record-high close of 5574.12 points, bringing its gain so far this year to 3.6 per cent.
The Dow Jones Industrial Average slipped 0.03 per cent to 19,885.73 points, while the S&P; 500 gained 0.2 per cent to 2274.64.
For the week, the Dow fell 0.4 per cent, the S&P; 500 shed 0.1 per cent and the Nasdaq gained 1 per cent.
The biggest boost to the S&P; 500 and the Nasdaq on Friday was provided by Facebook, which jumped 1.4 per cent after Raymond James upgraded the stock.
The combined profit of S&P; 500 companies is expected to have risen 6.2 per cent in the fourth quarter, according to Thomson Reuters I/B/E/S.
The S&P; 500 is trading at 17 times expected earnings, compared to its 10-year average of 14 times expected earnings, according to Thomson Reuters Datastream.
"We've come a long way very quickly so there's scope for a pullback, but overall the outlook for 2017 is relatively positive," said Jon Adams, senior investment strategist at BMO Global Asset Management.
Advancing issues outnumbered declining ones on the NYSE by a 1.69-to-1 ratio; on Nasdaq, a 2.34-to-1 ratio favoured advancers.
The S&P; 500 posted 31 new 52-week highs and 3 new lows; the Nasdaq Composite recorded 126 new highs and 14 new lows.
About 5.8 billion shares changed hands on US exchanges, lower than the 6.4 billion average in the last 20 sessions.