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 -- Ignore unavailable to you. Want to Upgrade?


To: Jan Robert Wolansky who wrote (8473)1/27/1999 8:01:00 AM
From: John Hunt  Read Replies (1) | Respond to of 11149
 
Re Any idea where in the 8400 posts the min/max code might be?

Jan,

Try a search on 'min/max' at the bottom of the page using 'this subject only'.

Works like a charm and turns up quite a few.

< g >

John



To: Jan Robert Wolansky who wrote (8473)2/3/1999 7:21:00 PM
From: Sean W. Smith  Respond to of 11149
 
// Hi Lo by Sean Smith
exchange = nyse, amex, nasdaq;
output = "hilo.lst";

// input="vol250.lst";
// ProcessMS = "f:\invest\metadata\hilo\",VMS;

daystoload = 2200;
daysrequired =1;

Integer numdays,i,minDate, maxDate;
float maxHi, minLo;

numdays:=((DaysLoaded-1)*-1);

maxHi:= max(0, numdays, cl);
minLo:= min(0, numdays, cl);

maxDate := 0;
minDate := 0;

for i=numdays to 0 step 1 do
if close(i) >= maxHi then
maxHi := close(i);
maxDate := i;
i:=0;
endif;
next i;

for i=numdays to 0 step 1 do
if close(i) <= minLo then
minLo := close(i);
minDate := i;
i:=0;
endif;
next i;

Print Symbol:-5,",","cl:0",",",close(0):6:2,",","Max",",",close(maxDate),",MaxDate,",Date(maxDate);
PrintLn "Min",",",close(MinDate),",MinDate,",Date(MinDate);