Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
moving average crossover

Short moving average (5 days) and long moving average (30 days). Buy when short exceeds long, sell when long exceeds short.

2 responses

if i want to add let's say 5 more stocks or etfs and long/short all of the securities at all times based on the cross over, what code would i use? sorry.....newbie here

same question, how should I handle if I want to add more stocks into the portfolio