SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Bob Jagow who wrote (3813)4/5/1998 1:23:00 AM
From: TechTrader42  Read Replies (1) of 11149
 
Bob: I think maup must be >= 24 in the Canslim scan, not just =24. Or
perhaps =26, not 24. The reason is that the for loop counts from 0 to
minus 60 in steps of minus 5, and the 0 would be counted as one step.
I used the following scan to test maup for the maximum number
returned, and it's 26.

Because of this, if you have maup=24, you lose some of the best
stocks, ones in which this is true for a longer time: 10-day MA >
50-day MA and 50-day MA rising weekly for the past 3 months.

Shouldn't we change this line:

avgvol(0,-29)>30000 and maup = 24 and low15 = 60 then
to: avgvol(0,-29)>30000 and maup >= 24 and low15 = 60 then

or change it to: avgvol(0,-29)>30000 and maup = 26 and low15 = 60
then

Here is the scan for testing maup (and then after that, I'll include
the whole Canslim scan with the correction):

output ="canslimtest.lst";
input="commplus.lst";
//issuetype=common; exchange nyse,nasdaq,amex; //set these in input

daystoload=320; //Guard for less days?
integer i;
float maup, ma50;

//10-day MA > 50-day MA and 50-day MA rising weekly for the past 3 months
maup:=0;
for i = 0 to -60 step -5 do
ma50:=movavg(i,50,Cl); //use it twice
if movavg(i,10,Cl)> ma50 and
ma50 > movavg(i-5,50,Cl) then
maup:=maup + 2; //need 24 to pass
endif;
next i;

if close(0)>=0 then
println symbol, maup;
endif;

******************************

Here's the whole Canslim scan:

output ="canslim.lst";
input="commplus.lst";
//issuetype=common; exchange nyse,nasdaq,amex; //set these in input

daystoload=320; //Guard for less days?
integer i;
float low15, ma50, maup, max260, pwh, vi;

max260:= Max(-1,-260,hi);

//10-day MA > 50-day MA and 50-day MA rising weekly for the past 3 months
maup:=0;
for i = 0 to -60 step -5 do
ma50:=movavg(i,50,Cl); //use it twice
if movavg(i,10,Cl)> ma50 and
ma50 > movavg(i-5,50,Cl) then
maup:=maup + 2; //need 24 to pass
endif;
next i;

//Low within 15% of 52 week high every day for 3 months
//To match Mike A., test for close(0) >= .85*max(-1,-260,hi) 1st
low15:= -999; //Guard for fail
if close(0) >= .85*max(-1,-260,hi) then
low15:=0;
for i = 0 to -59 step -1 do
if low(i)>=.85*max(i,i - 260,hi) then
low15:=low15 + 1; //need 60 to pass
endif;
next i;
endif;

pwh:= 100*(Close(0)- max260)/max260; // % within 52 week high

//Calculate percent of volume change compared to 50 average daily volume
vi:= -999; //Guard for println
if AvgVol(0,-50) !=0 then //Prevents division by 0
vi := 100*(Vol(0) - AvgVol(0,-50)) / AvgVol(0,-50);
endif;

if close(0)>=10 and eps>0 and qrs(0)>=80 and
avgvol(0,-29)>30000 and maup >= 24 and low15 = 60 then
println symbol, ", ","EPS: ",EPS:4:3, ", ","QRS ", QRS(0),", ",
"Close: ",Close(0):6:3, ", ", "52 HIGH: ", Max(-1,-260,hi):5:3,", ",
"PWH: ",pwh:3:0, ", ","VOL: ",vol(0):7:0, ", ",
"AVG VOL: ",avgvol(0,-50 ):7:0, ", ","VOL PCT CHANGE: ",vi:4:0;
endif;
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext