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

Help with an ELA



PureBytes Links

Trading Reference Links

Would appreciate it if someone with TS could "convert" the following short
code into an ELA file so that I could transfer this (SRSI) into my
SuperCharts program.  Should only need some quick cutting and pasting.  If
you could send this as a function, rather than an indicator, that would be
even better.

Thanks in advance,
Frank




Inputs:	Len(10);

Vars:	count(0),
	Smooth23(0),
	CU23(0),
	CD23(0),
	SRSI(0);

Smooth23 = (Close + 2*Close[1] + 2*Close[2] + Close[3])/6;
CU23 = 0;
CD23 = 0;
For count = 0 to Len - 1 begin
	If Smooth23[count] > Smooth23[count + 1] then CU23 = CU23 +
            Smooth23[count] - Smooth23[count + 1];
     	If Smooth23[count] < Smooth23[count + 1] then CD23 = CD23 +
            Smooth23[count + 1] - Smooth23[count];
end;
If CU23 + CD23 <> 0 then SRSI = CU23/(CU23 + CD23);

Plot1(SRSI, "SRSI");






-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/252 - Release Date: 2/6/2006