Oil gains, stocks rallied on renewed recovery hopes