Function for counting something in amibroker?


What function do you for counting some stuff in amibroker??

Sum() and Cum() does not count, are they ?

yes CUM() function Calculates a cumulative sum of the ARRAY from the first period in the chart.

you can use 

StrCount( ''string'', ''substring'' ) 

this is​ Function returns integer which is number of times substring was found in string.


NullCount( array, mode = 1 )

this Counts the number of consecutive nulls at the beginning of the array​