PureBytes Links
Trading Reference Links
|
Try XAverage2.
Jan Philipp
----- Original Message -----
From: "Wayne Mathews" <wayne@xxxxxxxxx>
To: "=omega list" <omega-list@xxxxxxxxxx>
Cc: "Franz Schildberger" <Franz.Schildberger@xxxxxx>
Sent: Friday, December 07, 2001 9:34 AM
Subject: Re:Problem with XAverage function in TS6
> You are using a variable (AvgLength (0);) for an input to a series
> fucntion. In TS 4 this was not allowed but in TS2K it does work for me.
> Evidently TS 6 is coded like TS 4 and does not allow variable inputs to
> a series function.
>
> In TS 6 try changing XAverage to just Average or use another simple
> function such as DMI or FastK as a test bed and see if a variable can be
> used as an input.
>
>
>
> > Date: > Thu, 06 Dec 2001 15:25:48 +0100
> > From: > "Franz Schildberger" <Franz.Schildberger@xxxxxx>
>
> > I just stumbled over a problem with XAverage function in ELA. If you
> > use a variable for length the restults of the XAverage function are
wrong.>
> > I am using TS6, so not sure if problem exists in 2000i too.
> > Copy the following code into an indicator and insert it into a chart.
> > If I did something wrong, please let me know.
> >
> > {============================================}
> > Inputs: Price (Close), Length (10);
> >
> > Variables: AvgLength (0);
> >
> > AvgLength=10;
> >
> > Plot1( XAverage(Price,Length), "1PlotInd" ) ;
> > Plot2( XAverage(Price,AvgLength), "2PlotInd" ) ;
> > {===========================================}
>
>
|