Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled Exception when opening Indicator in NinjaScript editor....

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

    Unhandled Exception when opening Indicator in NinjaScript editor....

    Hello

    what does this mean and how can I fix it?

    when opening an Indicator script in the Editor

    Unhandled Exception Index was out of range. Must be non-negative adn less than the size of the collection. Parameter name: index.

    #2
    Hello llanqui,

    There was an error that occurred.

    Is this happening when opening any indicator like the SMA, or when opening a specific indicator?

    Try running the repair from the NinjaTrader installer.
    Access step-by-step NinjaTrader platform training for desktop, web, and mobile. Explore video tutorials and practical guides to help you confidently use trading tools and features.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi, I repaired the install and still the same problem

      this is just for a specific indicator...one I wrote....I'll move it to another computer / NT8 and see if it does it there

      Comment


        #4
        Hello llanqui,

        My theory is something is wrong with a public property.

        Can you reduce the script to just the line(s) causing the error and provide an export?

        Start by making a copy. After making a copy Exclude the original from compilation. Make sure the copy can reproduce.

        Then in the copy remove all code in OnBarUpdate(). Check again it can still be reproduced.

        Then remove any added code to OnStateChange(). Check again it can still be reproduced.

        Remove any properties you can and still be able to reproduce.

        The provide an export of whatever is left that is still causing the error.

        To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
        1. Click Tools -> Export -> NinjaScript...
        2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
        3. Click the 'Export' button
        4. Enter a unique name for the file in the value for 'File name:'
        5. Choose a save location -> click Save
        6. Click OK to clear the export location message
        By default your exported file will be in the following location:
        • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
        Below is a link to the help guide on Exporting NinjaScripts.
        http://ninjatrader.com/support/helpG...-us/export.htm

        Once exported, please attach the file as an attachment to your reply.​
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        41 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        29 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        46 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        37 views
        0 likes
        Last Post CarlTrading  
        Working...
        X