Chart Analysis: Mathematical Methods for Market Data Processing