Blake: Here's the highest close (the alternative scan I sent before). Note the "cl" in "max(i,-250+i,cl)". You'll get more hits this way. (Still, you might save on brokerage costs with my "10 consecutive closes at the median" scan. I've been tempted at times to revert to such a system. It has its advantages. Trading with it is like being an air-traffic controller at an airport without airplanes -- safe and quite relaxing, actually. Both are popular pastimes at the Victor Niederhoffer Traders' Asylum.)
output="hi.lst"; integer i; for i=-30 to -10 step 1 do if close(i)=max(i,-250+i,cl) and vol(i)>=1.5*avgvol(i,-49+i) then println symbol:-7, "52-week high: ", date(i), " ", Close(i):6:2, " ", " Days after high: ", " ", "1: ", " ", Close(i+1):6:2, " ", " 2: ", " ", Close(i+2):6:2, " ", " 3: ", " ", Close(i+3):6:2, " ", " 4: ", " ", Close(i+4):6:2, " ", " 5: ", " ", Close(i+5):6:2, " ", " 6: ", " ", Close(i+6):6:2, " ", " 7: ", " ", Close(i+7):6:2, " ", " 8: ", " ", Close(i+8):6:2, " ", " 9: ", " ", Close(i+9):6:2, " ", " 10: ", " ", Close(i+10):6:2; endif; next i; |