NinjaScript > Language Reference > Data >
Bars
Definition Bars objects represent the bars of data being processed by your indicator or strategy.
Methods and Properties
BarsSinceSession
Number of bars that have elapsed since session start
GetBar
Returns the bar index based on time
GetDayBar
Returns a Bar object that represents a trading day whose properties for open, high, low, close, time and volume can be accessed.
FirstBarOfSession
Value indicating if the bar is the first bar of a session
PercentComplete
Value indicating the completion percent of a bar
Session
Session information of the Bars object
TickCount
Total number of ticks of the current bar