TickCount

View as Markdown

Definition

Returns the total number of ticks of the current bar processing.

For historical usage, you must use Calculate.OnEachTick with TickReplay enabled; otherwise a value of 1 will be returned.

Property Value

A long value that represents the total number of ticks of the current bar.

Syntax

Bars.TickCount

Examples

1// Prints the tick count to the output window
2Print("The tick count of the current bar is " + **Bars.TickCount**.ToString());