Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
First try on MACD -- GOOG

This time I tested GOOGLE with the same algorithm.
Compare to APPLE, GOOGLE does not have an obvious up-trend.
SO, this strategy of simple MACD preformed bad, which means the strategy is not a good one.

Keep learning, keep coding~

1 response

After looking at your code, it doesn't seem like you are using the MACD indicator. MACD uses EMA12 and EMA26 which are exponential moving averages. You on the other hand are using simple moving averages SMA

Try playing around with talib MACD