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

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.
    NinjaTrader is a futures trading platform that delivers integrated multi-device trading. Discover our best platform to trade futures for active futures traders.
    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 inanazsocial, Today, 01:15 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        6 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        1 view
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        23 views
        0 likes
        Last Post trilliantrader  
        Started by Davidtowleii, Today, 12:15 AM
        0 responses
        3 views
        0 likes
        Last Post Davidtowleii  
        Working...
        X