Energy and resource stocks have zigged while the market has zagged.