How Can We Help?

Weighted Moving Average

You are here:
< All Topics

WeightedMovingAverage(Vector, Periods)
WMA(Vector, Periods)

MA Type Argument ID: WEIGHTED

A Weighted Moving Average or WMA places more weight on recent values and less
weight on older values.

A Moving Average is most often used to average values for a smoother
representation of the underlying price or indicator.

set BUY = CLOSE > WMA(CLOSE, 30)
Evaluates to buy when the close is greater than a 30-day WMA.

Table of Contents