Stocks turn positive in knife-edge U.S. election race