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 CortexZenUSA, Today, 12:53 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by usazencortex, Today, 12:43 AM
      0 responses
      2 views
      0 likes
      Last Post usazencortex  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,265 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X