Stock Forecast Based On a Predictive Algorithm