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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      88 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      48 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      31 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      34 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      68 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X