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 RookieTrader, Today, 09:37 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by kulwinder73, Today, 10:31 AM
      0 responses
      7 views
      0 likes
      Last Post kulwinder73  
      Started by terofs, Yesterday, 04:18 PM
      1 response
      24 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by CommonWhale, Today, 09:55 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Gerik, Today, 09:40 AM
      2 responses
      7 views
      0 likes
      Last Post Gerik
      by Gerik
       
      Working...
      X