See the Medium writeup here.
This notebook takes in price data, finds minima and maxima points, and detects technical patterns (specifically an inverse head & shoulders) in price.
You can also record returns after occurrences of a patterns to find if your pattern has edge over time.