Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
RSI with a Moving Average Cross component

I am new to algorithms and python and I decided to try my hand at it. I created this simple algorithm that buys when the RSI is low or if the 5 day SMA is 5% above the 30 day SMA, using a mixture of high and low beta stocks.

I would appreciate feedback on how this could be improved and be made more robust.

Many thanks!

Fares

2 responses

Hi,
Looks interesting. Test it also if marked is bearish (2008 - 2010). Set commision and slippage.
J.

Thanks for the feedback Quant Trader,

I tested it from 2006-2010 and although results are not as impressive it does outperform the S&P500. It should be noted however that I removed SPHB, SH and TSLA symbols from this backtest as the TA-LIB RSI transform would return a NaN error.