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 (3835)4/5/1998 5:44:00 PM
From: TechTrader42  Read Replies (1) of 11149
 
Bob: We might want to change the scan so it's 12 weeks by changing
"for i = 0 to -60 step -5 do" to "for i = -5 to -60 step -5 do," or we could make it: "for i = 0 to -55 step -5 do." With either of these changes, 24 would be the required number, not 26.

Here's an example:

maup:=0;
for i = 0 to -55 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;
endif;
next i;

What do you think? Which version of all of these is the closest to the original? I think I like 0 to -55 since 0 represents the most recent day and -60 takes us back to the 13th week.

Brooke
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext