PureBytes Links
Trading Reference Links
|
Hi Andrew,
When you use Average(Price, X)[Y],
It will return values of 0 if Y is greater than X.
If the displacement is greater than the length, you can have a MaxBarsBack
conflict.
If you use Average(Price[Y],X), It will calculate the average of the last X
"prices of Y bars ago" values.
Then, you will not have a MaxBarsBack conflict.
Rgds,
Philippe
////////////////////////////////////////////////////////
philippe_lhermie@xxxxxxxxxxx
///////////////////////////////////////////////////////
----- Original Message -----
From: Andrew <andrew@xxxxxxxxx>
To: Grekond <andrey1@xxxxxxx>
Cc: Omega List <omega-list@xxxxxxxxxx>
Sent: Tuesday, August 03, 1999 5:08 PM
Subject: Re: EL Help
>
> Grekond wrote:
>
> > If I want to get an average price for x days ago I can use
Average(Close,x)
> > function.
> > How can I get in EL average price for the same length but starting few
days
> > ago ?
> >
> > Thanks in advance.
> >
> > Andrei
>
> Average(Price, X)[Y]
>
> Price = Price you want the average of
> X = Length to computer the average for
> Y = Value from number of previous bars ago
>
>
>
>
>
|