Here's another version, with a slightly different output:
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;
I made millions with this scan today, so there's no charge for the work. No, actually, by some extraordinary coincidence this was a stock scan in a new beta. I just cut and pasted it here. I'm surprised you came up with the same idea. OK -- maybe not. The fact is that nothing brings greater pleasure in life than writing new QP2 scans (especially during market hours) -- something many people throughout the world are unaware of, astonishingly enough. Gonzongo isn't unaware of it; nor are others. But these are rare enlightened beings, avatars really.
The output looks like this:
AAII 52-week high: 02/18/1999 26.00 Days after high: 1: 26.16 2: 26.56 3: 26.50 4: 26.50 5: 25.50 6: 26.00 7: 25.50 8: 25.50 9: 24.75 10: 24.50 AAII 52-week high: 02/19/1999 26.16 Days after high: 1: 26.56 2: 26.50 3: 26.50 4: 25.50 5: 26.00 6: 25.50 7: 25.50 8: 24.75 9: 24.50 10: 23.38 AATI 52-week high: 03/08/1999 24.50 Days after high: 1: 24.62 2: 24.62 3: 24.38 4: 24.56 5: 24.62 6: 24.44 7: 24.50 8: 24.50 9: 24.50 10: 24.50 AATI 52-week high: 03/09/1999 24.62 Days after high: 1: 24.62 2: 24.38 3: 24.56 4: 24.62 5: 24.44 6: 24.50 7: 24.50 8: 24.50 9: 24.50 10: 24.50 ABDR 52-week high: 02/23/1999 65.75 Days after high: 1: 62.50 2: 65.12 3: 67.75 4: 65.75 5: 65.12 6: 63.88 7: 65.12 8: 68.88 9: 69.12 10: 68.38 ABE 52-week high: 02/25/1999 14.19 Days after high: 1: 14.62 2: 14.44 3: 13.50 4: 13.94 5: 13.69 6: 13.25 7: 13.25 8: 13.38 9: 13.62 10: 14.00 |