Cycle-theory-based market analysis is the main focus of this thesis, in which I try to find systematic methods to recognize and utilize market patterns, especially cyclic ones, to obtain a correct understanding of market movements. The KNN algorithm, a pattern recognition method extensively used...