Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ninjatrader crashes everytime i import ninjascript add on

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

    ninjatrader crashes everytime i import ninjascript add on

    I cannot import any indicators. in trying to trouble shoot i have deleted all data, uninstalled ninjatrader and reinstalled and restarted fresh and started over, and then tried to import indicators that i know i have had in the past, those still didnt work either. i dont know what to do, when it does this i got this error before and after i uninstalled and reinstalled ninjatrader - "import failed. The NinjaScript Archive File may contain duplicate method names that already exist on your PC, modify a method signature that other scripts were dependent on, or be missing a require file on either your PC or in the import archive."

    #2
    Hello Corvettecandles,

    Thank you for the message.

    The error you see when importing the add-on means that there is already a file in the PC defining the same terms or variables that you are trying to import.
    • For example, there is already a file within NinjaTrader that says X = 5
      • Then, you are trying to import a NinjaScript that says X = 11
      • Since X cannot equal both 5 and 11, the platform doesn't let you import the strategy and cause more errors.

    Since NinjaTrader doesn't create the 3rd party add-ons, we do not have specific information on what files would need to be removed specifically so that your add-ons no longer show errors.


    To resolve this behavior, you can either:
    • Reach out to the developers of the add-on you are trying to import and get their help finding out which files are in the way and then get their help removing the offending files.
    • Or, follow the steps below to remove ALL of the 3rd party add-ons from your platform and then reimport them back in 1-by-1 in the order you want them.

    To remove all 3rd party NinjaScript Items from the platform to start fresh:
    • Close NinjaTrader
    • Go to the Documents folder > NinjaTrader 8 > bin, Right-click on this folder and Rename it to "bin Old" and press Enter to save the name change
    • Now we need to Repair the NinjaTrader installation:
      • Go to the Windows Control Panel > Programs and Features > Click NinjaTrader 8 > Click Repair > Click Next through the prompts until finished
    • Reopen NinjaTrader and check for compile errors using the steps below:
      • Go to New > NinjaScript Editor > Right-click on the background and Compile to show if there are any errors remaining
      • If yes, take a screenshot of the error messages and include that in your response.
    ​From here, you can reimport your add-ons back in 1-by-1 in the order you want them.
    • If the error returns, you would know which add-on was causing the duplicate files issue and you can then reach out to the developer for further information and advice.

    Please let us know if we may provide any further assistance.

    Comment


      #3
      i did all of those steps, got the same error. renamed, the folder, repaired ninja, compiled, no errors, everything. imported ninjascript then same error and it crashed. tried it with 2 indicators. whats the next thing i can try?

      Comment


        #4
        Hello corvettecandles,

        Thank you for the update.

        I would prefer to look through the Log and Trace files from your platform before responding with any further insight so that I can provide an informed response.
        • The Forum is a publicly facing location so please do NOT share the requested files here.

        Please use the following steps to send your log and trace files to the support team directly from your NinjaTrader Platform so we may investigate this behavior further:
        • Within NinjaTrader, go to the Control Center > Help > Email Support...
        • To: Set this to "Platform Technical Support"
        • Subject: Copy and paste the Forum URL
        • Attach: Attach a file, picture, or compressed file to share multiple files/pictures
        • Body: Include any other information you would like to share on the situation
        • Make sure 'Log and Trace files' is checked to include the requested files
          • Send the email
        ​We look forward to your response and resolving your inquiry.

        Comment


          #5
          ok email sent thank you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          41 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          124 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          64 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X