Apple has had a phenomenal past couple of years in terms of its business and stock price. If you really want to test your algo I would suggest testing it against other stocks. The most logical candidates would be stocks in the S&P 500. The attached algorithm looks great, but if you put in something like CAT and CDE, it tanks.