| se 3 posts
 msg #146804
 - Ignore se
 modified
 | 3/4/2019 3:24:24 PM 
 Hi, Can I count the number of times that a stock touches both the top and the bottom of its channel?
 I understant this: Show stocks trading in a 200 day channel.  But I don't see how to count the number of times a stock comes near to either the top or bottom.
 
 I have tried this.
 
 set{matr, atr}
 set{ctop, count(stock trading at the top of 100 day channel,1)}
 set{cbot, count(stock trading at the bottom of 100 day channel,1)}
 Show stocks trading in a 200 day channel
 and close between 2 and 200 and average volume(30) > 100000
 and ctop > 0
 add column matr
 add column ctop
 add column btop
 sort column 4 ascending
 chart-time is 200 days
 
 but it seems like count is not counting the actual number of times that the stock is touching or moving through its top and bottom channels.
 
 SE
 
 
 |