(CNBC) — U.S. stocks closed mildly higher on Tuesday as investors remained optimistic on the Greece debt talks and eyed continued signs of moderate economic growth.
"We had some generally positive factors supporting the markets today," said Ben Garber, capital markets economist at Moody's Analytics. "More optimism related to Greece. Positive economic data—core durable goods (rose) and a jump in new home sales."
The Nasdaq Composite closed a record for the second day in a row. The index touched a fresh intraday high soon after the open but traded below the flatline for much of the day. The Dow Jones industrial average and S&P 500 also approached closing highs after fluctuating in midday trade.
Advertisement - story continues below