AMC has undefined everything, Alain ;) Sure would have flunked a vol pre-screen. Most scans here and on Brooke's site either have a vol test or an input file name that hints of volume. 30 and 300K avgvol filters seem common -- I use 30K or a PrVol equivalent e.g. [with utterly unnecessary embellishments :)] -Bob -------------- IssueType Common; float MinPrVol, MaxPrVol, maPr, maVol, prVol; integer bar, prLen, volLen; bar:= 0; prLen := 10; volLen := 30; MinPrVol := 10; // Set M here ************ output = "10M+PrVol.lst"; // Rename to match MinPrVol := 1000000*MinPrVol; Daystoload = 2200; // For count DaysRequired = 100 -bar; maPr := MovAvg(bar,prLen,cl); // Store Pr if maPr > 1 then maVol := Movavg(bar,volLen,vol); if maVol > 30000 then // lowish prVol := maPr*maVol; if prVol > MinPrVol then Println symbol,",",PrVol/1000000:8:3,",",maVol/1000:8:3,",", DaysLoaded; endif; endif; endif; |