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: pham who wrote (6277)9/2/1998 3:27:00 AM
From: bdog  Respond to of 11149
 
pham, not sure why this works but it does, put another if statement in...maybe too long of a if statement or the logic condition throws it off? (I'm not smart enough to know why)
also took out the backslashes in front of the <=0.07 , have no idea what those were for..

BTW these things run quicker using [if's] instead of [and's]
bdog

try this:

Float todayclose, pmax, pmin,obvmax,obvmin, obvrange;

output="long.lst";
Exchange=NYSE,NASDAQ,AMEX;

pmax:=max(0,-300,cl);
pmin:=min(0,-300,cl);
obvrange:=abs(max(0,-300,obv)-min(0,-300,obv)+0.0001);
obvmin:=min(0,-300,obv);
todayclose:=close(0);

if (todayclose > pmin) then // trending down
if (HasOptions = True) and // the issue has listed option
(AvgVol(0,-90)>=500) and // And 50,000 shares average volume
((close(0)/movavg(0,200,cl))< 0.7 and
abs((wmovavg(0,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-1,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-2,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-3,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-4,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-5,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-6,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-7,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-8,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-9,25,cl)-pmin)/pmin)<=0.07

then
println symbol,",",description,",",Industrygroup;
endif;endif;



To: pham who wrote (6277)9/2/1998 3:56:00 AM
From: Glen Ingram  Respond to of 11149
 
Pham,
Not sure if the "\<=" and "\<" syntax in all the
"abs((wmovavg(0,25,cl)-pmin)/pmin)\<=0.07 and" statements
means something special to QP1 but QP2 doesn't like them.
I took all the backslashes out and balanced the parentheses in
"((close(0)/movavg(0,200,cl))\< 0.7 and" (1 too many left's) and it
ran ok. (no hits though after half the alphabet.)
Hope this helps.
-Glen
(Noticed you didn't use obvrange and obvmin after defining.)

The scan:

Float todayclose, pmax, pmin,obvmax,obvmin, obvrange;
output="long.lst";
Exchange=NYSE,NASDAQ,AMEX;

pmax:=max(0,-300,cl);
pmin:=min(0,-300,cl);
obvrange:=abs(max(0,-300,obv)-min(0,-300,obv)+0.0001);
obvmin:=min(0,-300,obv);
todayclose:=close(0);

If (todayclose > pmin) and // trending down
(HasOptions = True) and // the issue has listed option
(AvgVol(0,-90)>=500) and // And 50,000 shares average volume
((close(0)/movavg(0,200,cl))< 0.7 and
abs((wmovavg(0,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-1,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-2,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-3,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-4,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-5,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-6,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-7,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-8,25,cl)-pmin)/pmin)<=0.07 and
abs((wmovavg(-9,25,cl)-pmin)/pmin)<=0.07)
then
println symbol,",",description,",",Industrygroup;
endif;