You are complicating this. As a solution, pick an index, GDXJ for example. Set the moving average pane to EMA 13-34 on the weekly graph. This is a John Murphy textbook formula. When the 13 crosses over the 34 in an uptrend, go long. In the opposite case, go to cash. This indicator does not fail.
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.