LastBarOnChartEx (Function)
The LastBarOnChartEx function is used to determine if the current bar is the last bar on the chart, assuming that the seconds portion of the last bar is not the same as any other bar (i.e. only accurate to the second).
Note that more than one bar may have the same DateTime if more than one bar occurs within the range of accuracy of the DateTime object. Therefore, this function may return true prior the last physical bar in the data stream.
Note that this function may return true prior to the last physical bar in the data stream when this function is used in a study that does not update intra-bar.
Syntax
LastBarOnChartEx
Returns (Boolean)
True when the current bar is the last bar. Otherwise, False if not.
Parameters
None