[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code question



PureBytes Links

Trading Reference Links

Hello Adleone,

Well, exponentially smoothed average assigns greaters weights to the more recent data. It is also a weighted moving average. I was general in my first message -- not being specific on "exponentially". However, I see where you come from -- it may be easier for everyone to call function XAverage exponentially smoothed average.

Here textbook definition out of TS8 EL Dictionary: "The XAverage function is a weighted moving average of the prices of the last length bars. This function returns the current value of the exponentially smoothed moving average."

-- Harrison

adleone wrote:


Harrison wrote:

The function XAverage(Price, Length) only takes two parameters, not three. It returns the weighted moving average of the PRICEs of the last LENGTH bars.

You're sure about that? I 've always thought that XAverage returns an exponential average whereas WAverage returns a weighted moving average.


-- Harrison
www.HarrisonProgramming.com