Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Longs Count keeps increasing

Hello,

I've run this example: https://github.com/quantopian/zipline/blob/master/zipline/examples/momentum_pipeline.py

and contrary to what it says ("Longs Count should always be 3 after the first day"), the longs count goes over 40. The leverage similarly increases without bound.

Does anyone know why?

Thanks,
Sam