Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Buy all stocks priced at X, sell at Y

Can anyone point me to example code of an algo that would buy all stocks under X price and sell once they reach Y price?