(CNBC) — U.S. stocks closed higher on Wednesday as investors eyed better-than-expected data and remained optimistic on resolution between Greece and its creditors.
"Investors should have higher conviction we are back to trend (on economic growth)," said David Lefkowitz, Senior Equity Strategist at UBS. "I think it's mostly about Greece (and) a lot of volatility around what's happening in Europe."
Stocks advanced despite Prime Minister Alexis Tsipras' statements the country will go ahead with the referendum on Sunday and that it is not a determinant of whether or not Greece remains in the euro zone, Reuters reported.
Advertisement - story continues below