I believe that it's the moving average that I want to calculate.<BR><BR>If I have a matrix A = [0,1.5,2.3,3.4,5.7] and I want the sum of 1.5-0, 2.3-1.5, 3.4-2.3, ... divided by the number of ...
Moving averages smooth out stock price fluctuations to clarify trends. Simple and exponential are the main types of moving averages. These tools help determine optimal stock buying or selling times.