Shares of cannabis companies are trading higher, potentially in anticipation of the Jan. 1 legalization of recreational marijuana in Illinois. The sector has been volatile this year amid legalization as well as technical factors and potential squeezes.