TickCount

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Bars >

TickCount

Previous page Return to chapter overview Next page

Definition

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

 

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

 

 

Property Value

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

 

Syntax

Bars.TickCount

 

Examples

ns


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