Hello everyone. I am trying to use STATA to detect technical analysis patterns in stock prices. Does anyone here know the codes.

I already started with npregress command. But, I cannot go beyond that. Here are the definition of the price patterns.
Array Array
Thank you.