MovAvgWeighted

Description

The Weighted Moving Average study is a Moving Average indicator that shows the average value of the security price over a period of time with a heavier weighting given to the more recent price action.

The Weighted Moving Average is calculated by multiplying each of the previous days' data by a weight factor. That factor is equal to the number of days past the first day used in the Moving Average so that today's weight factor is the greatest, while the first day's factor is equal to 1. The total is then divided by the sum of the factors, for example, for the 5-day Weighted moving average, it is equal to 5+4+3+2+1=15.

Input Parameters

Parameter Description
price The price used to calculate the WMA.
length The number of bars used to calculate the WMA.
displace The displacement of the WMA study, in bars. Positive values signify displacement to the past.

Plots

Plot Description
AvgWtd The line of Weighted Moving Average.

Example*

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

  Past performance is no guarantee of future performance.

You may also like
MomentumPercentDiff
The Momentum Percent Diff is a momentum-based technical indicator. Unlike the regular Momentum ...
WilliamsAD
The Williams Accumulation/Distribution study is used to determine either the marketplace is ...
ATR
The Average True Range (ATR) study calculates the average true price range over a time period. ...