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

  • bltdavid
    replied
    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.

    Leave a comment:


  • bltdavid
    replied
    This might help, too,
    https://stackoverflow.com/questions/...ange-net-error

    Leave a comment:


  • bltdavid
    replied
    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

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:


  • 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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by ラリー, 11-22-2022, 04:57 AM
11 responses
67 views
0 likes
Last Post NinjaTrader_Emily  
Started by sesplin, Yesterday, 07:53 PM
2 responses
13 views
0 likes
Last Post sesplin
by sesplin
 
Started by pezram, 09-28-2022, 11:27 AM
7 responses
57 views
0 likes
Last Post NinjaTrader_ChristopherJ  
Started by Germanvibe, 11-23-2022, 09:22 PM
1 response
278 views
0 likes
Last Post NinjaTrader_ChristopherD  
Started by Irukandji, Today, 05:29 AM
1 response
4 views
0 likes
Last Post NinjaTrader_ChristianN  
Working...
X