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: Debra Orlow who wrote (9436)5/9/1999 5:49:00 PM
From: Bob Jagow  Read Replies (2) | Respond to of 11149
 
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