Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Ranking Stocks By Market Cap and Executing Orders By Comparing MA 20 and MA 50 of the stocks

Hello, I'm trying to rank the securities by market cap and I want the algorithm to buy shares of the securities from the top 30 by market cap that the MA 20 crossed MA 50. I need help. I'm a newbie