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 benmarkal, Yesterday, 12:52 PM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by helpwanted, Today, 03:06 AM
          1 response
          19 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          11 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          244 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          388 views
          1 like
          Last Post Gavini
          by Gavini
           
          Working...
          X