Hi Members, I am wondering if we can model a Volatility Contraction Pattern or Cup-n-Handle patterns popularized by Mark Minervini and CANSLIM methodologies. Below are few charts on how they look like:

  • Volatility Contraction Pattern(VCP):
     
107242_1657476039.jpg3 Contracting High-Low combinations before breakout(shown in blue)107242_1657476254.jpgIn chart this is how it looks like107242_1657476167.jpg2 Contracting High-Low combinations before breakout in blue107242_1657476316.jpg

To Summarize, VCP is characterized by tightening price action towards the right side of stock chart and it is coupled by drying up of volume

  • Cup-n-Handle:
107242_1657476528.jpgTypical Cup-n-Handle setup

It is characterized by a U shaped price action coupled with a flat Handle type formations on the right side.
 

I am trying to achieve it with combination of rolling window+min,max period indicators, but would love to know better approaches from the forum. Thanks!