Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Having 10 longs and 10 shorts every trading session

I am building a model where I want 10 longs and 10 shorts every time I rebalance(every month). However, it seems that I am only succeeding in taking 10 long and 10 short positions during every trading session. Am I missing something in the code?