Blake: Here's another version of the scan, which has a slightly different output. Now, the out put gives the change in price from when the high was hit, instead of just the new close. With the change in price, it's easier to see quickly how the stock has performed since hitting the high.
(BTW: Since it's the Easter weekend, can't we finally come up with the Holy Grail of scans, the one that will make all of us billionaires within a few months?)
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: ", " ", "Day 1: ", " ", Close(i+1)-Close(i):6:2, " ", " Day 2: ", " ", Close(i+2)-Close(i):6:2, " ", " Day 3: ", " ", Close(i+3)-Close(i):6:2, " ", " Day 4: ", " ", Close(i+4)-Close(i):6:2, " ", " Day 5: ", " ", Close(i+5)-Close(i):6:2, " ", " Day 6: ", " ", Close(i+6)-Close(i):6:2, " ", " Day 7: ", " ", Close(i+7)-Close(i):6:2, " ", " Day 8: ", " ", Close(i+8)-Close(i):6:2, " ", " Day 9: ", " ", Close(i+9)-Close(i):6:2, " ", " Day 10: ", " ", Close(i+10)-Close(i):6:2; endif; next i; |