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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X