Hi Sean, sometime ago you posted a scan to print out the low/high and the date of a stock. I went back and tried it, one thing I noticed is "daystoload" does not really work the way it should be. When I change it to a smaller number, It still use the same default number of days. Can you explain this. thanks
<SCAN EXPORTDATE=September 28, 1998 5:30:57 pm> <TITLE>HIGH_LOW</TITLE> <DESCRIPTION>This Scan uses the Psycles concept of extended toppy patterns</DESCRIPTION> <CODE> // Hi Lo by Sean Smith exchange = nyse, amex, nasdaq; output = "hilo.lst"; // input="vol250.lst"; // ProcessMS = "f:investmetadatahilo",VMS; daystoload = 2200; daysrequired =1; Integer numdays,i,maxHi, minLo, minDate, maxDate; numdays:=((DaysLoaded-1)*-1); minLo := 99999999; maxHi := 0; maxDate := 0; minDate := 0; if (HasOptions = True) then for i=numdays to 0 step 1 do if close(i) >= maxHi then maxHi := close(i); maxDate := i; endif; if close(i) \<= minLo then minLo := close(i); minDate := i; endif; next i; endif; Print Symbol:-5,",","cl:0",",",close(0):6:2,",","Max",",",close(maxDate),",MaxDate,",Date(maxDate); PrintLn "Min",",",close(MinDate),",MinDate,",Date(MinDate); </CODE> </SCAN> |