GetBar()
GetBar()
Definition
Returns the first bar that matches the time stamp of the “time” parameter provided.
If the time parameter provided is older than the first bar in the series, a bar index of 0 is returned. If the time stamp is newer than the last bar in the series, the last absolute bar index is returned.
Method Return Value
An int value representing an absolute bar index value.
Syntax
Bars.GetBar(DateTime time)

