| dleather25 39 posts
 msg #156163
 - Ignore dleather25
 | 3/16/2021 9:36:59 PM 
 Hello, I am looking to count the amount of times a stock has reached a new 52 week low within the last year and I thought I was doing it right... maybe someone can correct my coding. if there is a way of course. Thanks.
 
 
 set{52wl, 52 week low}
 set{XTrig,  count( close = 52wl, 252)}
 
 
 | 
| compound_gains 225 posts
 msg #156164
 - Ignore compound_gains
 | 3/16/2021 9:58:30 PM 
 
 
 
 
 | 
| dleather25 39 posts
 msg #156165
 - Ignore dleather25
 | 3/16/2021 10:22:23 PM 
 set{macd52wl, MACD Histogram(12,26,9) 1 year low}
 set{DSLmacd52wklo, days(MACD Histogram(12,26,9) > macd52wkl, 252)}
 dslmacd52wklo >-1
 add column dslmacd52wklo
 
 also trying to do this with say accumulation distribution, obv, and MACD histogram... is there a way to do that?
 
 
 | 
| dleather25 39 posts
 msg #156166
 - Ignore dleather25
 | 3/16/2021 10:25:28 PM 
 Thanks CG, that helps out a lot.
 
 
 |