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

Problem with XAverage function in TS6



PureBytes Links

Trading Reference Links

Hi list,

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.

Thanks in advance.

Nice Regards,

Franz

{============================================}
Inputs:
	Price (Close),
	Length (10);

Variables:
	AvgLength (0);

AvgLength=10;

Plot1( XAverage(Price,Length), "1PlotInd" ) ;
Plot2( XAverage(Price,AvgLength), "2PlotInd" ) ;
{===========================================}