Thanks a lot, R. I will try it out today.
---------
The function reference of "Cum" says that to find count of condition when true for a range of bars, "Sum" should be used
- example -
count = LastValue(Sum(C>O , 14));
this should give the number of times C was greater than O in last 14 bars.
What do you think?