I'm just in the process of trialing some swing trading ideas. The algorithm here uses a swing filter to detect adequate swing in the opposite trend direction. Currently this strategy is always in the market. I've included the TradeBar consolidator logic so it can be tweaked easily. It will also plot the swing points.