how do you calculate a simple moving average 
to calculate a simple moving average the sum of the prices within a time period is divided by the number of prices for instance consider shares of tesla closed at 10 11 12 11 14 over a five day period the simple moving average of tesla s shares for this 5 day period would equal 10 11 12 11 14 divided by 5 which equals 11 6 