lctrcbddha 28 posts msg #66391 - Ignore lctrcbddha |
8/19/2008 1:30:15 PM
Is there a way to count the number of times a certain event has occured since the last time a different event occured?
Silly example - count the number of times a 52-week high has been set since the last time a 52-week low was set.
I thought that something like the following would work:
set{DAYS_SINCE_LOW,days(low reached new 52 week low,100)}
set{NUM_HIGHS,count(high reached new 52 week high,DAYS_SINCE_LOW)}
But debug says, "Warning: no period specified for count." Note that this is not the same error generated by a period of 0.
Any other ways?
Thanks!
- Bill
|
chetron 2,817 posts msg #66393 - Ignore chetron |
8/19/2008 1:34:56 PM
maybe...
|
chetron 2,817 posts msg #66401 - Ignore chetron |
8/19/2008 2:50:56 PM
OR EVEN....
|
lctrcbddha 28 posts msg #66405 - Ignore lctrcbddha |
8/19/2008 4:23:45 PM
That will work. Thank you!
|