Moving average is calculated on the latest price of the stock while we drop the earlier prices from the series and taking average of the them so that we can plot them in the chart.
Moving average can be calculated on series of opening price, closing price, high price or low price of a stock.
A Weighted Moving Average (WMA) is a type of moving average in which each data point is given a variable weight or relevance in the calculation.
Another kind of moving average is exponential moving average (EMA). There are certain advantages of EMA like it considers the importance on the most recent stock prices than the previous stock prices.