Dear Experts,
This is a sample code from long short. After defining a universe, how do I know the number of stocks in the universe? I tried to replace TOTAL_POSITIONS with len(universe) but it is not working as shown below
Nuniverse1 = len(universe1) //2
Nuniverse2 = len(universe2) //2
# longs1 = combined_factor.top( Nuniverse1, mask=universe1)
# longs2 = combined_factor.top(Nuniverse2, mask=universe2)
Thank you
L