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

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: advinfo who wrote (9654)6/20/1999 11:10:00 AM
From: Magnatizer  Read Replies (1) of 11149
 
Thread

I am having trouble with a simple scan. My goal is to find CCI 13 on a weekly scale crossing up through -150. Using a list I created from the SP indexes. The output from the scan is giving me way to many indexes which do not meet the criteria.

input="spindex.lst";
output="ccispindex.lst";
weekly;
if cci(0) > -150 and // The cci is above -150 today

cci(-2) < -150 or // 2 weeks prior it was below

cci(-1) < -150 // last week it was below

then

println symbol,",",description;

endif;

thanks
david
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext