One scan knows not of the other, Debra. You could combine the scans in certain cases, but two separate MS outputs is not one of them.
Otherwise, you could just flag which condition was hit and output a single println containing the flag. ---- integer gc; gc := 0; if ( ADX(0)=>35 and PDM(0)>MDM(0) and StochasticPctK(0)<40 and (((high(0)+.25)-(min(0,-5,lo)-.25))/(high(0)+.25))<.15 ) then gc := 1; endif;
if ( low(-1)>EMovAvg(0,20,cl) and low(0)<EMovAvg(0,20,cl) and ADX(0)=>30 ) then gc := gc +2; endif;
if gc > 0 then println symbol, ",", gc, ",", high(0), ",", min(0,-5,lo), ",", max(0,-15,hi), ",", AvgVol(0,-40)/1000000; // 1,2,and 3 are unique outcomes
endif; --------- For different outputs, use ---- if gc = 1 then println;//scan 1 stuff endif; if gc = 2 then println; //scan 2 stuff endif; if gc = 3 then println; //scan 3 stuff endif; ---- Bob |