Looking for wave candidates

A forum for all EdgeRater users

Moderator: Chris White

Post Reply
Rickbw
Posts: 5
Joined: Sat Dec 04, 2010 1:48 pm

Looking for wave candidates

Post by Rickbw »

I am interested in looking for “wave candidate” stocks. I followed the concept in a trial subscription to the software package “Best Choice” – it is a seasonality software, but it allows scans for stocks that exhibit wave patterns around a Linear Regression line.

I was able to plot the indicator in MFL and then use its scanning capability to find stocks;

Here is the indicator for the lower band;
time:=90;
number:=1.5;
end:=LastValue(Cum(1))-1;
pt:=LastValue(Ref(LinearReg(C,time),-1));
slope:=LastValue(Ref(LinRegSlope(C,time),-1));
start:=BarsSince(Cum(1)>=end-(time-1));
center:=If(start=0,pt - (slope*(end-Cum(1))),0);
dis:=LastValue(Ref(Stdev(C,time),-1))*number;
{center+dis;
center;}
LRLower:=center-dis;
LRLower;

And the upper;
time:=90;
number:=1.5;
end:=LastValue(Cum(1))-1;
pt:=LastValue(Ref(LinearReg(C,time),-1));
slope:=LastValue(Ref(LinRegSlope(C,time),-1));
start:=BarsSince(Cum(1)>=end-(time-1));
center:=If(start=0,pt - (slope*(end-Cum(1))),0);
dis:=LastValue(Ref(Stdev(C,time),-1))*number;

LRUpper:=center+dis;
{center;
center-dis}
LRUpper;

Then I can do an explorer scan by the following;
Tab A;
x:=
L < Fml( "LRLower") ;
Cum(x) ;
Tab B;
xx:=
H > Fml( "LRUpper") ;
Cum(xx) ;

And the filter is;
colA > 3 AND (colA/colB) <= 3 AND (colB/colA) <= 3
Here is the formula for Linear regression channels in Edgerater;
LinReg : LR(C, N);
SD := STDP(C, N);
Upper : LinReg + (P * SD.LASTVALUE);
Lower : LinReg - (P * SD.LASTVALUE);

Any ideas on how to scan for wave candidates using the Edgerater formula?

I know this was a long post, but I wanted to make sure I showed what I was attempting to accomplish.

Thanks,

Rick
Post Reply