(CNBC) U.S. stocks closed near highs on Thursday, with the Nasdaq at a record, as investors focused on earnings beats amid progress towards near-term resolution in the Greek debt crisis. ( Tweet This )

“Earnings are continuing to play a bigger role,” said Omar Aguilar, chief investment officer of equities at Charles Schwab Investment Management. “Financials (had) pretty positive results. At the same time it also reflects that people think the economy continues to move in the right direction, maybe not at the pace we thought we could grow but (still growing).”

Note: Read our discussion guidelines before commenting.