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

RE: XAverage on Array



PureBytes Links

Trading Reference Links




No ! My array indexes in the new value at 0 and kicks out the last at 20 and
moves everything down at the close of each bar. I am sure it can be done, it
is just a little over my head. Thanks for your input.

Gaston
-----Original Message-----
From: editorial@xxxxxxxxxxxxx [mailto:editorial@xxxxxxxxxxxxx]
Sent: Saturday, June 03, 2000 6:24 PM
To: Gaston Lang
Cc: Omega List
Subject: Re: XAverage on Array



You can't really do that.

The exponential *moving* average depends on replacing one point in a series
(the last) with a new end point then recalculating and repeating the
process...  You can't just take 20 values and calculate an XAverage of
them...  Does only one value in your array change on each bar?




 ---- you wrote:
> Good afternoon all,
> Question for the EL Guru's!
>
> I Have an single dimensional Array called TR, within this array are 20
> values. I would like to compute the exponential average of the 20 values
> starting with the TR[0]. Any help here would be greatly appreciated.
>
> Thanks
> Gaston
>