This algorithm seeks the viability of using the cyclical nature of the market and the Russell 2000 to go either long or short in S&P-tracking ETF's. This addresses the common question of whether the market trends can be predicted by any other trends.
The algorithm is simple. It purchases a basket of unleveraged and 2X ETFs that either track the S&P 500 or the inverse of the S&P 500. The algorithm determines the ratio of 2X to unleveraged ETFs using the difference in the value of the Russell 2000 to the moving average.
Please let me know if you have any suggestions or improvements for my algorithm!