Sean, Bob, M. thanks for the tips. I'm still unclear where "convention" would exactly place the added lines in your suggestions, i.e. where integers / variables can be called and modified within the code sequence; are there any repetive, unnecessary or misbegotten instances as I've written it here. It seems to perform as intended (tho I don't really understand why <g>), but would appreciate opinions of any blatant code-inefficiency suggestions. You're great teachers. I'm a slow pupil.
// BBB (by R. Estes) variation of the 5pctvol.scn looped 17 days
output="Bbbloop.lst"; ProcessMS = "c:\meta\bbbloop",MSDATA; integer i,j; j:=0; For i = 0 to -17 step -1 Do If j=0 and // <<<----added this-------<<< Close(i) > Min(i-1,i-5,cl)*1.05 and Close(i) > Max(i-1,i-260,cl)*.85 and Vol(i) >= AvgVol(i,-65) and AvgVol(i,-130) >= 30000 and Vol(i) >= 30000 and QRS(i) > 80 then j:=j+1; // <<<----added this-------<<< println symbol; endif; next i; |