XAverage (Function)

image\trumpet2.gif Disclaimer

The XAverage series function is an exponentially weighted moving average of the prices of the last length bars.

Syntax

XAverage(Price, Length)

Returns (Double)

A numeric value containing the exponential average over a specified number of bars.

Parameters

Name

Type

Description

Price

Numeric

Specifies which bar value (price, function, or formula) to use.

Length

Numeric

Sets the number of bars to consider.

Remarks

When this moving average is calculated, every bar’s price in the data file will have an effect on the current average. The effects of the first price will never be completely removed, but its weight will continuously shrink as more and more averages are calculated.

Example

Plot1(XAverage(Close,20));

Reference

Kaufman, P.J. The New Commodity Trading Systems and Methods. John Wiley & Sons. New York 1980. Page 40.

See Also

Average, TriAverage, and WAverage