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:
- TICK_FLAG_BID β the tick changed the Bid price;
- TICK_FLAG_ASK β the tick changed the Ask price;
- TICK_FLAG_LAST β the tick changed the price of the latest trade;
- TICK_FLAG_VOLUME β the tick changed the volume;
- TICK_FLAG_BUY β the tick appeared as a result of a buy trade;
- TICK_FLAG_SELL β the tick appeared as a result of a sell trade;