

Must be used with an Amibroker analysis that selects only a universe of stocks that meet the trend template and Goal is to easily find possible VCP pivots that are tight enough to be attractive to buy You will get some false positives, but that's just the nature of the game of filtering. What this code doesn't do is judge the quality of the initial contractions, but that is not as important as the stock cleaning up for the final contraction. Here is a figure of what the final contraction should look like So it looks for major consolidations (bases) and then checks the quality of the final pivot.


It's not perfect, but can raise efficiency in your daily workflow and allow you to narrow down on stocks that are ready for a buy-stop order.

However now I came up with something a little more automated. I also showed a way to use studies to measure VCPs here. If you are familiar with Mark Minervini's VCP, you'll know it's now a popular way of detecting low risk entry points if the stock is already in a Stage 2 Uptrend, which I already discussed here. I think I nailed some code that can help find VCPs in their final contraction.
