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

Error: Strategy Error on calling 'OnStartUp' method for strategy '': Bad IL range.

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

    Error: Strategy Error on calling 'OnStartUp' method for strategy '': Bad IL range.

    Hello,
    I have strategy using 3rd party indicator (dll). But sometimes (very often) get this error:
    Strategy Error on calling 'OnStartUp' method for strategy '': Bad IL range.

    I get the same error when I tried to used the 3rd party indicator in my own indicator.
    Any idea what's wrong?

    Thanks a lot.

    #2
    Hello Luigio,

    Thank you for the post.

    The error you mentioned is not one that I have seen in the platform previously, however, there are some details surrounding " Bad IL range." in contrast to C#.

    This specifically mentions OnStartUp which is a NinjaTrader state, so the script is failing in its OnStartUp override. The message Bad IL range seems to come up for a few C# situations relating to either corruption or incorrect format.

    From the given details, this could possibly be that the dll is corrupt and needs to be reinstalled. This could also be something that the script is doing in its code because the error states OnStartUp. I would suggest reaching out to this vendor to get a new download of the files and then re-import it. This would be a good first step at diagnosing this situation, or to make sure the files are all valid and up to date. You can also pass this information along to the vendor to see if they have any reported cases of this happening.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by Luigio View Post
      Strategy Error on calling 'OnStartUp' method for strategy '': Bad IL range.
      Contact the vendor.

      This might help,
      https://stackoverflow.com/questions/...exception-mean

      Comment


        #4
        This might help, too,
        https://stackoverflow.com/questions/...ange-net-error

        Comment


          #5
          Maybe indicator's DLL is 64-bit and you're running 32-bit version of NinjaTrader?

          Some vendors do not expose the DataSeries and other needed properties from their
          indicators, so they're not that useful to the NinjaScript programmer -- but not sure
          how *that* issue would cause the error you're seeing ...

          I don't know, contact the vendor of the 3rd party indicator for support. Ask for help
          confirming your DLL is correct and not corrupted.

          I have a feeling this problem may require you to find a solution via a long process
          of elimination -- it appears the cause may be any number of things.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by forgpwp123, 09-05-2021, 12:24 AM
          3 responses
          233 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by tanas.eduard, Today, 07:10 AM
          0 responses
          4 views
          0 likes
          Last Post tanas.eduard  
          Started by MicroTrends, 03-15-2023, 08:08 AM
          18 responses
          89 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by Uhumm, 03-24-2023, 04:10 PM
          5 responses
          67 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by Bliksem, 03-24-2023, 03:59 PM
          3 responses
          70 views
          0 likes
          Last Post Bliksem
          by Bliksem
           
          Working...
          X