When it comes to the market this quarter, bad is good.

Some of the S&P 500's worst-performing sectors on the year have emerged as some of the recent winners. Energy, and , which were all down heading into the fourth quarter, are the three best-performing S&P 500 sectors since Oct. 1, up a respective 11, 9.5 and 6.5 percent over that time. And according to one technician, that could mean trouble for the market.