Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Catch 22 -- NinjaScript with errors message

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

    Catch 22 -- NinjaScript with errors message

    Hello,

    When I go to import a script, I get the following error:

    ===========================================

    You have custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can import a NinjaScript Archive.

    ============================================

    It does not tell me WHICH script has an error....and as far as I can tell (in the Indicator and Strategies lists), the only scripts there are the ones that Ninja Loaded.

    So...I seem to be stuck.

    Please advise. Thanks.

    #2
    If you open an indicator for editing and just try to compile it you will see what is generating the errors listed at the bottom of the editor window.

    Dan
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      I once had a similar problem and there was no clue as to which indicator or strategy was causing the problem. I had to export all of my custom files, then delete them all in NT7, then import and re-compile them one-by-one to figure out which one was causing the problem.

      It actually did turn out to be a problem with a strategy; I was referencing something illegal during initialize(). But it appeared to work before, then started triggering errors after one of the Beta updates.

      Comment


        #4
        reply

        Yes, that is the problem, it does not tell you which script has the error, so you are left to going through them one by one until you find the error.

        I'm hoping the Ninja guys will have a better solution for this.

        Comment


          #5
          Turtle Trader,

          Not sure what you mean by going through them one by one. When you open up the NinjaScript Editor and press F5 it compiles the whole assembly. Any errors in any of your files will be listed at the same time.

          If you receive the import fail error because the error is actually in the file you are trying to import you are likely trying to import an incompatible NT6.5 file into NT7. In that case then you would want to try the steps outlined here in the Migrating NinjaScript section: http://www.ninjatrader-support2.com/...ad.php?t=21019
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            reply

            OK, if that is the case then the error message is confusing. It implies that the error is in one of the existing scripts that are already imported.

            It does not say that the current script that I am trying to import has a problem.

            Here is the error message again...

            ===========================================

            You have custom NinjaScript files on your PC that have programming errors. These errors must be resolved before you can import a NinjaScript Archive.

            ============================================

            Is that telling me the script I'm trying to import has a problem, or that one or more of the scripts in the Ninja library has a problem?

            Thanks

            PS. Yes, this is NT7 and I am trying to import a very simple 6.5 script

            Comment


              #7
              The error message will be the same regardless of if the error is in the zip or in your preexisting files. The import utility assumes .zips were made error free since that is the only way you can export them. Since code changes were made in 7, some 6.5 zips will not work. Please follow the steps in the link in my previous post to bring 6.5 indicators over into 7 manually.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              596 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              343 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              556 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              554 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X