(CNBC) U.S. stocks closed lower on Thursday as Wall Street digested earnings from some of the top financial companies.

The Dow Jones industrial average finished 31 points lower after hitting an intraday record.The Nasdaq composite also hit a record, before closing 0.2 percent lower. The S&P 500 declined 0.2 percent after hitting an all-time high.

“We still have a long way to go in the earnings season to know where things are,” said Ken Moraif, senior advisor at Money Matters. But “there’s a lot of optimism in the market that earnings will be good.”

Note: Read our discussion guidelines before commenting.