CurrentBar
<< Click to Display Table of Contents >> CurrentBar |
A number representing the current bar in a Bars object that the OnBarUpdate() method in an indicator or strategy is currently processing. For example, if a chart has 100 bars of data, the very first bar of the chart (left most bar) will be number 0 (zero) and each subsequent bar from left to right is incremented by 1.
Note: In multi series processing, the CurrentBars starting value will be -1 until all series have processed the first bar. |
An int value that represents the current bar.
CurrentBar
// OnBarUpdate method |