Difference between revisions of "TickID"

From MultiCharts
Jump to navigation Jump to search
(Created page with "This keyword can be used to distinguish between the bars with the same date and time stamps. '''For tick and volume-based charts:''' <br> Returns the tick index within a sec...")
 
(No difference)

Latest revision as of 12:16, 29 September 2014

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);

Note

The range of returned values is limited by the MaxBarsBack setting.