How should I go about designing algorithm that would collect VWAP from all "candles" in a timeframe and determine common patterns like the once in the image. I'm not sure if the logic design would require AI based approach or if there is already library design for this purpose. I'm not looking for proprietary solutions that are already out there since they will not share how they accomplished overall architecture of the solution.
I'm just curious to see if there is value in calculating probability of pattern recurrence in specific market based on past history. Not sure if this was attempted on any marked out there, but if it was I would also appreciate any links or references pointing me to reading materials I could study from.