Industrial metals like copper and agricultural items like wheat look ready to rally. Gold, not so much.

Commodities should deliver their best annual performance in years, and traders think the rally will roll on in 2017. The S&P Goldman Sachs Commodity Index–a gauge of raw material performance across energy, agriculture, and metals markets–has risen about 25% this year, on pace for its best yearly gain since...