XATPER
New member
I'm trying to locate stocks who's TEMA 10 and TEMA 20 are converging as the stock (and TEMAs) are falling. I have come up with the following script, but am not getting the desired results. Any help would be apprecitated.
Def T20 = TEMA(20);
Def T10 = TEMA (10);
Def T201 = TEMA (20)[1];
Def T101 = TEMA (10)[1];
Def Diff1 = T201-T101;
Def Diff = T20-T10;
Plot Scan = (Diff1 - Diff)/Diff1 > .4;
If I use the above scan, I don't get any results, but if I change the > to < I get results but, again, not the ones I'm looking for.
Def T20 = TEMA(20);
Def T10 = TEMA (10);
Def T201 = TEMA (20)[1];
Def T101 = TEMA (10)[1];
Def Diff1 = T201-T101;
Def Diff = T20-T10;
Plot Scan = (Diff1 - Diff)/Diff1 > .4;
If I use the above scan, I don't get any results, but if I change the > to < I get results but, again, not the ones I'm looking for.