added calculation of first indicator (moving average)