Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Importing NinjaScript Errors

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

    Importing NinjaScript Errors

    Hello. I am getting an error when attempting to import a strategy that I have created and exported myself.

    The code is working perfectly. I can successfully export the strategy using NinjaTrader's Export Tool. However, if I try to immediately import the zip file, I get the following error:

    Import Failed. The NinjaScript Archive File may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or the import archive.

    Taking a look at the trace file, I see the following 2 errors (~~~ is used to obscure personal info):

    2014-02-18 14:35:42:481 c:\Users\~~~~~\NinjaTrader 7\bin\Custom\Tmp\Import\Strategy\~~~Strategy.cs CS1501 No overload for method 'CCI2' takes '3' arguments
    2014-02-18 14:35:42:481 c:\Users\~~~~\NinjaTrader 7\bin\Custom\Tmp\Import\Strategy\~~~~Strategy.cs CS1501 No overload for method 'CCI_EMAv2' takes '2' arguments

    The 2 files listed are custom indicators. However, the methods with the specified parameters are available in the NinjaScript generated code section of the Indicator files, so these particular methods are available (Code wouldn't compile if they weren't).

    Any idea what is going on here? Does the Generated Code get packaged in the zip file from the Export tool, or is it generated on import?

    Best,

    Shane

    #2
    Hello Shane,

    Thank you for your post.

    Are you exporting the files as source files or as a protected assembly?

    Comment


      #3
      Source files.

      Comment


        #4
        Hello tickleboy,

        Thank you for your response.

        Can you attach the .zip file to your response so I may test this item on my end?

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello tickleboy,

          Thank you for your response.

          Can you attach the .zip file to your response so I may test this item on my end?
          Hi Patrick. I can send it to you directly. What email address should I send it to?

          Best,

          Shane

          Comment


            #6
            Hello Shane,

            Thank you for your response.

            Please send a note to support[at]ninjatrader[dot]dom with 'ATTN: Patrick - 1019490' with the file attached.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            61 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            39 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            21 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            23 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            51 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X