Practical Pattern Recognition for Trends and Corrections