I tried to count ticks in a minute by above code. It works when i keep time frame in ticks.
I'm trying to get Histogram of ticks in a minute in 1 minute chart.
Due to my very limited knowledge of coding 'm stuck.
Please help me to get that tick count histogram for minute bar
Then open another chart and set interval to 1-minute there and call the artificial symbol (e.g. named ~TickCounter_BANKNIFTY-I) via Foreign or SetForeign.