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 port119, Today, 02:43 PM
          0 responses
          1 view
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          2 views
          0 likes
          Last Post Philippe56140  
          Started by 00nevest, Today, 02:27 PM
          0 responses
          1 view
          0 likes
          Last Post 00nevest  
          Started by Jonafare, 12-06-2012, 03:48 PM
          5 responses
          3,986 views
          0 likes
          Last Post rene69851  
          Started by Fitspressorest, Today, 01:38 PM
          0 responses
          2 views
          0 likes
          Last Post Fitspressorest  
          Working...
          X