Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to select a top gainer from a list

I have a list of stocks in context.security_list. From this I am hoping to pick the top gainer from previous close or highest volume or something similar. I can't figure out a simple way to do this, and my clunky method is making mistakes. Any advice on how to get this done?

1 response

Hello Rohit -

If you are still stuck, I suggest posting your code (with any "secret sauce" removed, if you prefer). The best answer sorta depends on how you are approaching things in your code.