GetValueAt()
<< Click to Display Table of Contents >> GetValueAt() |
Returns the underlying input value at a specified bar index value.
A double value representing the value at a specified bar.
GetValueAt(int barIndex)
ISeries<T>.GetValueAt(int barIndex)
Tip: If called directly from the instance of the NinjaScript object, the value which is returned corresponds to the input series the object is running. (e.g., Close, High, Low, SMA, etc.). If you're attempting to obtain another indicator value, you will need to pull this from the calculated indicator Value or Plot:
SMA(20).GetValueAt(123); // bar value (Input as Indicator).Values[0].GetValueAt(123) // passed in indicator value
|
barIndex |
An int representing an absolute bar index value |
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) |