Simple Moving Average. The easiest form of moving average. Just add up the selected number of most recent time frames and divide by the selected number. For example, if you had an SMA (8) on a 1 hour chart, just add up the closing values of the last 8 hours and divide by 8. NOTE: Default values to use in most programs are closing values. This can often be customized if you prefer opening values or pivot values.