(CNBC) — U.S. stocks closed mildly higher Tuesday, amid declines in oil prices, as investors eyed the latest Brexit polls and digested remarks from the Fed chair. All three major indexes briefly erased opening gains in mid-morning trade.
"I think that you've got a polling stalemate and people don't know what to do," said Maris Ogg, president at Tower Bridge Advisors. "At this moment, I think it's better to stay in cash."
Tech was one of the leaders in the S&P 500 in afternoon trade, helped by gains of 3 percent in shares of Micron Technology. Microsoft also traded more than 2 percent higher.
Advertisement - story continues below