Moving Average-based Forecasting Algorithm