IsValidDataPointAt()
<< Click to Display Table of Contents >> IsValidDataPointAt() |
Indicates if the specified input is set at a specified bar index value. Please also see the Reset() method for more information.
Notes: •If called directly from the instance of the NinjaScript object, the value returned corresponds to the Inputs Series (e.g., Close, High, Low, SMA, etc.) •When checking a Bar or PriceSeries, IsValidDataPoint() returns true as long as the barIndex value falls between 0 and the total count for that series. These are special series which always contain a value set at every slot index for multi-series scripting purposes (e.g., comparing two price series with various session templates, or one series has more ticks than the other) •For a Value series or custom Series<T>, IsValidDataPoint() returns true or false depending on if you have set a value at that index location |
A bool value, when true indicates that specified data point is set; otherwise false.
Warning: Calling IsValidDataPointAt() will only work a MaximumBarsLookBackInfinite series. Attempting to check IsValidDataPointAt() MaximumBarsLookBack256 series throw an error. Please check the Log tab of the Control Center |
IsValidDataPointAt(int barIndex)
ISeries<T>.IsValidDataPointAt(int barIndex)
Parameters
barIndex |
An int representing an absolute bar index value |
protected override void OnBarUpdate() |