SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Sean W. Smith who wrote (7575)11/4/1998 7:14:00 PM
From: pham  Read Replies (1) of 11149
 
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>
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext