U.S. stocks closed mostly higher on Tuesday, with the Nasdaq Composite rising 0.8% to 25,372, the S&P 500 gaining 0.4% to 7,569, and the Dow Jones Industrial Average falling 0.4% to 51,787. Markets are awaiting the results of the U.S. midterm elections, which could reshape President Donald Trump's remaining two years in office. Crude oil prices edged lower on Tuesday after Donald Trump insisted that a deal with Iran "could happen," with traders also citing unverified Middle Eastern media reports of progress regarding Iran's nuclear program and frozen funds. Apple shares fell 1.9% after warning that rising memory chip costs would impact profit margins; shares of both NVIDIA and AMD rose.