Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on calling "OnRender" & Error on calling "OnBarUpdate" method

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

    Error on calling "OnRender" & Error on calling "OnBarUpdate" method

    Hello,

    I get the following errors in my NT8 Log...

    Error on calling "OnRender" & Error on calling "OnBarUpdate" method

    What do I do to find out what is causing them?

    How do I fix those errors?

    Screenshots attached.

    Thanks,

    #2
    Hello i2w8am9ii2,

    The OnRender errors indicate an indicator is trying to access a price bar that does not exist in the chart. Unfortunately the error message does not say what indicator is causing it. I suggest to increase the amount of historical data in the chart and check if these errors persist.

    I'm not sure what the OnBarUpdate errors indicate - I'm not a programmer myself. The indicator is not listed in the error message again. Is there an indicator in your workspace that does not work as expected?

    When I search this error on the support forum, I came across the forum thread below (see post #7).
    https://ninjatrader.com/support/foru...ng-onbarupdate

    This generally means that you have used a foreach loop on a collection and then modified that collection during the iteration of the collection. A for loop would be used to avoid this error. You can hit this error in some cases by calling NinjaScript syntax like the DrawingTools collection. If you have more details on what code was used when this was generated we could review that.

    JasonNinjaTrader Customer Service

    Comment


      #3
      Hi Jason,

      Thanks for your reply and for the info.

      The indicators on my workspace appear to be working as expected, for the most part. I have hired a programmer to build a new indicator for me, and we are still going back and forth working things out.

      I posted here because he sometimes takes forever to get back to me and sometimes I think that his understanding of English is not the best.

      The programmer just gave me a new version of the indicator, so I'll check and see if the error messages persist.

      Take care,

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by tgn55, Today, 09:51 PM
      0 responses
      1 view
      0 likes
      Last Post tgn55
      by tgn55
       
      Started by cxxazssx, Today, 09:45 PM
      0 responses
      1 view
      0 likes
      Last Post cxxazssx  
      Started by southpacific001, 02-26-2021, 09:25 PM
      14 responses
      64 views
      0 likes
      Last Post REI140205  
      Started by punkiy2111, Today, 05:22 PM
      0 responses
      3 views
      0 likes
      Last Post punkiy2111  
      Started by secrettrader, Today, 03:36 PM
      0 responses
      8 views
      0 likes
      Last Post secrettrader  
      Working...
      X