Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

erro onbarupdate

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

    erro onbarupdate

    I have an indicator which i am trying to add to a chart, but seems is faulty. It prints nothing on the chart and it put this error in trace file

    ERROR: Error on calling 'OnBarUpdate' method for indicator 'entry-Indicator' on bar 10: Common Language Runtime detected an invalid program.

    Any idea what that means..generally..?

    #2
    Originally posted by draime View Post
    I have an indicator which i am trying to add to a chart, but seems is faulty. It prints nothing on the chart and it put this error in trace file

    ERROR: Error on calling 'OnBarUpdate' method for indicator 'entry-Indicator' on bar 10: Common Language Runtime detected an invalid program.

    Any idea what that means..generally..?
    I've never seen anything like that.

    I did find this old NT 6.5 and .net 2.0 post.

    Maybe your .net 3.5/4.0 is corrupted also?

    What's your system? xp/vista/win7/win8? 32/64 bit? all MS updates installed? .net 3.5/4 installed?


    Comment


      #3
      Thanks for the reply. I have windows xp, 32 bit, .net 3.5 and NT7

      I saw that post too but my error is a bit different... i don't think is something wrong with my computer, all other indicators and NT works fine...

      Comment


        #4
        Originally posted by draime View Post
        I have an indicator which i am trying to add to a chart, but seems is faulty. It prints nothing on the chart and it put this error in trace file

        ERROR: Error on calling 'OnBarUpdate' method for indicator 'entry-Indicator' on bar 10: Common Language Runtime detected an invalid program.

        Any idea what that means..generally..?
        That is an error that I have never seen. Are you willing to release the source code of the indicator, so that we can try to see what is happening?

        Comment


          #5
          This is not a managed NinjaTrader error, it would be a native .NET error

          Does your indicator references any non standard NinjaTrader assemblies?

          If you're unable to share the source code for us to test with, I'd suggest adding try-catch blocks to your script to determine exactly where the errors are coming from.

          MatthewNinjaTrader Product Management

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,607 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          15 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X