I am trying to only trade stocks within the same sector but I can't seem to figure out how to do so. I have tried to set the universe to only stocks in a certain sector like below but it does not work. Any suggestions?
universe = Q1500US() & morningstar.asset_classification.morningstar_sector_code == 206