The moving average may be the most widely used indicator. The Weighted Moving Average (WMA) indicator calculates and plots a weighted average of prices, specified by the Price input, from each of the most recent number of bars specified by the Length input. This method of calculating a Moving Average gives greater weight to the market’s most recent price and a reduced weighting to older prices. (A simple moving average gives equal weight to all the prices in the series.)
A moving average is generally used for trend identification. Attention is given to the direction in which the average is moving and to the relative position of prices and the moving average. Rising moving average values (direction) and prices above the moving average (position) would indicate an uptrend. Declining moving average values and prices below the moving average would indicate a downtrend. A displaced moving average plots the moving average value of a previous bar or later bar on the current bar.
This indicator is NOT displaced by default. Changing the input Displace to positive number displaces the plot to the left. Changing the input Displace to a negative number displaces the plot to the right.
WMA = (Close[0] x Exp%) + ( EMA[1] x (1-Exp%) )
Where,
EMA – Value of Exponential Moving Average
Close[0] – Today’s Close price
Exp% - The chosen exponential percentage
EMA[1] – Yesterday’s EMA value
Default value of Length is 10.
Long term length is 200