U.S. crude oil ended higher on Thursday, mostly on bargain hunting after the dollar weakened against some major currencies. Crude prices have been under pressure over fears of a supply glut with some unexpected increase seen in weekly stockpiles and concerns over a slowing Chinese economy.