This keyword can be used to distinguish between the bars with the same date and time stamps.
For tick and volume-based charts:
Returns the tick index within a second. For resolutions higher than 1 Tick returns the index of the last tick within the bar.
For time-based charts with resolutions of 1 sec or more:
Not supported. Returns 0.
Realtime ticks stored in the data base are being assigned the last 31 bit - the identifier of realtime affiliation. In order to get the TickID value without realtime identifier one needs to calculate the remainder from TickID value division by 2147483648.
value1 = mod(TickID, 2147483648);
The range of returned values is limited by the MaxBarsBack setting.