Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Help for someone new to coding

Hey guys! I'd like to start off my saying thanks for reading this if you are! I was trying to figure out how to create a portfolio that using the RSI value at the open, if the value is over 30, would buy a security, and an RSI at 75 would sell, while continually re-balancing the portfolio to a basket of 30 securities to equal weight at the end of day. So if security X went up 4.3% and security Y went down 2.7%, both would be brought back to being 3.33% of the size of the portfolio again before close. Any help would be greatly appreciated!

Best Regards