The Simple Moving Average is calculated by summing the closing prices of the security for a period of time and then dividing this total by the number of time periods. the SMA is basically the average stock price over time. One of the moving average use is to show the trend direction of a security price.