XAverageOrig (Function)

image\trumpet2.gif Disclaimer

The XAverageOrig series function is an exponentially weighted moving average of the prices of the last length bars using an alternate smoothing factor from XAverage.

Syntax

XAverageOrig(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.

XAverageOrig differs from XAverage due to the smoothing factor. The smoothing factor in XAverage is 2 / (Length + 1) and the smoothing factor in XAverageOrig is the reciprocal of the number of bars to consider, 1/Length.

Example

Plot1(XAverageOrig(Close,20));

Reference

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

See Also

XAverage