Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Pipe Set Screen with multiple values

Hello,

highest_diff = projection_price.difference.top(10)

highest_sr_rank = projection_price.sortino.rank()
highest_sr = highest_sr_rank.top(5)

I am trying to get the top 10 stocks based on difference then out of that 10 rank them by sortino and then take the top 5 of that!
Just using pipe.set_screen(highest_diff & highest_sr) will not give me 5 stocks because that is saying if they are on the top ten difference and are in top 5 sortino put them in the pipe. But I want the top 5 out of that top 10.

Any thoughts?

Thanks