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 AaronKoRn, Today, 09:49 PM
            0 responses
            6 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Today, 08:42 PM
            0 responses
            9 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Today, 07:51 PM
            0 responses
            10 views
            0 likes
            Last Post strategist007  
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,976 views
            3 likes
            Last Post jhudas88  
            Started by rbeckmann05, Today, 06:48 PM
            0 responses
            9 views
            0 likes
            Last Post rbeckmann05  
            Working...
            X