Predict stock market prices based on discovered patterns