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 : Technical Analysis - Beginners

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: mikeman who wrote (10096)4/26/1999 11:01:00 AM
From: mikeman  Read Replies (3) of 12039
 
I am trying to write scans for QP2 that will produce four groups of stocks:

1. stocks that are trending
2. stocks that are in a trading range
3. stocks that are volatile (large price and/or volume swings
4. stocks that are calm (small price and/or volume swings

I'd like to use these groups to compare how indicators perform in different trading environments.

I've tried writing these on my own but I'd not getting the right results. For example, I wrote this to get a list of trending stocks:

output ="trending.lst";

if (close (0) >=5) and
(close (0) > wmovavg (0, 7, cl)) and
(wmovavg (0,7,cl) > wmovavg (-1,21,cl)) and
(wmovavg (0,21,cl) > wmovavg (0,200,cl)) and
(wmovavg (0,200,cl) > wmovavg (0,400,cl)) and
(movavg (0,400,cl) > movavg (-400,400,cl)) then
println symbol,",",description;
endif;

When I ran this scan it produced a hodge podge list of stocks with only a few "trenders." I don't know why this didn't work.

I'd appreciate any help/advise in writing these scans.

Thanks

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