This application demonstrates how to back-test a Market Filter strategy using Shiny framework and Systematic Investor Toolbox . The Market Filter strategy invests in stock while the stock price is above the moving average and goes in cash otherwise. The periods where Market Filter strategy is invested are highlighted with green.
Michael Kapler Systematic Investor Blog
Original source code for this application at GitHub