Oil Prices Spark Reversal in Stock Market Gains