The indicator stores the tick from the terminal to an array. The type of the received ticks can be specified in the parameters:

Next, the tick array is displayed on the screen. During that the tick flag is displayed:

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/14667