Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 Price line Indicator has a bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NT8 Price line Indicator has a bug

    finally found this bug

    if I'm offline and I have no data loaded, I get this error when I have the Price Line indicator

    Indicator '': Error on calling 'OnRender' method on bar 0: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.

    this is how I fixed it, LINE 102, I added CurrentBars[0] < 1

    Code:
    protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
    {
    if (BarsArray[0] == null || ChartBars == null || CurrentBars[0] < 1)
    return;
    is this a wacky fix?

    #2
    AaronKoRn You may want to consider BarsRequiredToPlot: https://ninjatrader.com/support/help...iredtoplot.htm

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment


      #3
      Hello AaronKoRn,

      The checks for .IsValidDataPointAt() should prevent this error.

      Please update to the latest release of NinjaTrader 8 and confirm you are still able to reproduce the error.

      To update NinjaTrader
      • Shutdown all programs including NinjaTrader *important
      • Download NinjaTrader from the public link below
        Click here to download NinjaTrader
      • Double click the downloaded file to execute it
      • Follow the on screen instructions
      • Restart NinjaTrader
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      99 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      24 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      35 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      38 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X