How to identify harmonic patterns