Yep, Brooke. 24 is wrong, should be 26.
In case someone is trying to compare the R1 and R2 scans, ---------- 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; endif; next i; ----------- doesn't exactly match the 'marto' scan because it compares the 50-day MA for an additional week, -65. To duplicate his exactly would require messier code, such as -------------- maup:=0; for i = 0 to -60 step -5 do ma50:=movavg(i,50,Cl); //use it twice if movavg(i,10,Cl)> ma50 then maup:=maup + 1; // 13 max endif; if ma50 > movavg(i-5,50,Cl) and i != -60 then maup:=maup + 1; // 12 max, sum = 25 endif; next i; -------- Ran these two scans and got 83 hits for maup = 26 and 94 for this mod (with maup = 25). His current scan ccnet.com has 90 hits, but I haven't compared the contents of the 3.
Bob |