Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Import failure

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

    NinjaScript Import failure

    I had expected that NT7B6 would take care of all NT6 to N7 indicators import failures. The error message is always as follows;

    "Import failed, The NinjaScript Archive File may contain duplicate methods names that already exist on your PC or there is a required file missing on either your PC or in the import archive"

    A typical indicator that gives the above error message is the "Auto Trend Line Detection" indicator in the Ninja "Links and Downloads Manager --> Indicators" link.

    Is there a tweak or solution to this import failure ?

    Lolu

    #2
    I did a search on "Auto" in the indicators section but no match. What is the exact (!) name of the indicator (as shown in the download area) you are referring to?

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      I did a search on "Auto" in the indicators section but no match. What is the exact (!) name of the indicator (as shown in the download area) you are referring to?
      The exact name is Auto Trend Line Detection as indicated in my post below. It is loaded/compiled into NT6 as AutoTrendLine. It is on page 1 of the "Links and Downloads Manager --> Indicators" link.

      Lolu

      Comment


        #4
        You probably are referring to the "Automatic Trend Line Detection". That indicator is not yet amended to work with NT7.

        Note: There are couple of coding breaking changes with NT7 which will render some NT6.5/NT6 indicators/strategies useless until they would be amended to work with NT7.

        Comment


          #5
          Originally posted by NinjaTrader_Dierk View Post
          You probably are referring to the "Automatic Trend Line Detection". That indicator is not yet amended to work with NT7.

          Note: There are couple of coding breaking changes with NT7 which will render some NT6.5/NT6 indicators/strategies useless until they would be amended to work with NT7.
          Yeah, you're right. It is "Automatic .....

          I want to amend the indicator script and other indicators that may give this same error message. Considering that the error message is the same in most of the indicators I've attempted to import, what portion of the script do I need to amend to make it work on NT7. Lets take this "Automatic Trend Line Detection" as an example.

          I shall appreciate your assistance on this matter

          Lolu

          Comment


            #6
            As a general approach you needed to:
            - download the zip file and unzip
            - manually copy the indicator to the right folder
            - start NT
            - open the indicator in question in the NinjaScript editor
            - compile -> will throw a couple of error messages, which you then needed to fix (see code breaking changes section in the beta docs)

            Comment


              #7
              Originally posted by NinjaTrader_Dierk View Post
              As a general approach you needed to:
              - download the zip file and unzip
              - manually copy the indicator to the right folder
              - start NT
              - open the indicator in question in the NinjaScript editor
              - compile -> will throw a couple of error messages, which you then needed to fix (see code breaking changes section in the beta docs)
              Thanks, Dierk.

              I compiled the AutoTrendLine.cs file and I got two error messages. The two messages relate to the same issue and as follows;

              No overload for method 'DrawRay' takes '8' arg

              Looking at the script and the relevant statement lines, I can see that the DrawRay command has 8 arguments. In effect, NT7 cannot take 8 arguments. But why ? I expect that NT7 should make allowance for more arguments than NT6.

              Meanwhile, I'll go through the beta docs if that would help me and I'll feed you back on my experience.

              Lolu

              Comment


                #8
                There is a code breaking section in the beta docs which you should carefully review before doing ANY migration work on NinjaScript.

                Comment


                  #9
                  Lulu,

                  look at this post it may help to solve your problem



                  I got the same error and I was missing the word false.

                  Comment


                    #10
                    Originally posted by velocity View Post
                    Lulu,

                    look at this post it may help to solve your problem



                    I got the same error and I was missing the word false.
                    Velocity,

                    Great !!!!!!

                    The "false" helps and it works. I had earlier removed two arguments in the DrawRay command string, which also works, but I prefer your work-around.

                    Thanks.

                    Oooooh, my name is LOLU, not LULU.

                    Lolu

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    607 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    353 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
                    560 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    561 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X