Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
ETF Rotation not Ordering correctly

Hello,

Below is my ETF algo which is running into an issue when ordering. The premise behind the strategy is to look at 40 global ETFs and order based on the following criteria:

If current price is > EMA50 > EMA 200 and MACD <30 = BUY (LONG)

If current price is < EMA50 < EMA 200 and MACD > 70 = SELL (Short)

Any suggestions are greatly appreciated or any new implementations I should consider.