Shares of marijuana companies have been on a tear this year, a sign that the cannabis craze isn’t letting up.

The ETFMG Alternative Harvest exchange-traded fund, which invests in some of the most notable medicinal-marijuana firms and holds stocks such as cannabis producers Cronos Group Inc. and Canopy Growth Corp.and Aurora Cannabis Inc., has soared 46% in 2019.

Pot...