US stocks oscillated between small gains and losses on Wednesday, as traders look past an upbeat report on cooling consumer prices and assess the outlook for global trade.