I think you have some confusion in the different types of moving average.
From the MS Help files:
An exponential (or exponentially weighted) moving average is calculated by applying a percentage of today's closing price to yesterday's moving average value.
For example, to calculate a 9% exponential moving average of IBM: First, we would take today's closing price and multiply it by 9%. We would then add this product to the value of yesterday's moving average multiplied by 91% (100% - 9% = 91%).
A simple, or arithmetic, moving average is calculated by adding the closing price of the security for a number of time periods (e.g., 12 days) and then dividing this total by the number of time periods. The result is the average price of the security over the time period. For example, to calculate a 21-day moving average of IBM: First, we would add up IBM's closing prices for the preceding 21 days. Next, we would divide that sum by 21; this would give us the average price of IBM over the preceding 21 days. We would plot this average price on the chart. The following day (tomorrow) we would do the same calculations: add up the previous 21 days' closing prices, divide by 21, and plot the resulting figure on the chart.
You can recreate a SIMPLE moving average in code, like (simplistically)
prd:=13;
data:=CLOSE;
Sum(data,prd) / prd;
You can recreate an EXPONENTIAL moving average in code, like
prd:=13;
data:=CLOSE;
n:=2/(prd+1);
If(Cum(1)=1,data,PREV*(1-n) + data*n);
Hope this helps.
wabbit
"The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
Edsgar W. Dijkstra
MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC & MDK
For custom MetaStock programming : http://www.wabbit.com.au
My SkyPE status : 
My SkyPE account : wabbit.com.au