Can someone try to run the scan below. I ported it from Qp1 and keep getting the syntax error on the 'if' statement. Thanks
<SCAN EXPORTDATE=September 1, 1998 11:04:57 pm> <TITLE>long</TITLE> <DESCRIPTION>This Scan uses the Psycles concept of extended toppy patterns</DESCRIPTION> <CODE>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; </CODE> </SCAN> |