Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

unzip failed

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

    unzip failed

    I've been trying to import a ZIP archive but apparently I get a message "..could not decompress the ninjascript archive..". Unzipping the file delivers correct c# code - a single file with the indicator name in the ./Indicator/ subdirectory. The ZIP file was created with winrar. Can this be done at all or do I need another approach to import an external indicator I have in source only? Or is there a tool to do this? I though I'd ask before starting to fiddle with Winzip or the like?

    Thanks ahead!

    tb

    #2
    We only support importing NS archives created by NT itself and not by any other 3rd party compressing tool.
    DierkNinjaTrader Customer Service

    Comment


      #3
      Thanks, that was quick :-).
      So is there any way to get code you have in source only into the system?
      I guess you could create some sort of template and then just paste the text for the relevant methods, not sure that's an elegant work around however?

      Comment


        #4
        Not sure I follow. You export code by File->Utilities->Export NS and import it by File->Utilities->Import NS. Please consult related docs for details.
        DierkNinjaTrader Customer Service

        Comment


          #5
          Dierk,
          basically what I have from a fellow trader is the source code for two indicators he is normally distributing as a DLL - with obfuscation etc.
          There is no more access to the service that has coded his stuff so we agreed I would have a look at the code and see if I could fix certain things for him.
          So, while familiar with .NET/C# but new to NT I tried to package this in a ZIP - apparently no luck as this needs to be done inside NT for NT seemingly adds some signing bytes or the like to the file.
          I haven't looked further - any hint is appreciated though!
          br
          tb

          Comment


            #6
            Still not sure I follow. If you have sources and the stuff compiles ine in NT then you either
            a) want to deploy sources -> File->Utilities->Export NS
            b) or you want to deploy binaries only -> File->Utilities->Export NS
            DierkNinjaTrader Customer Service

            Comment


              #7
              I have sources but outside NT.
              I found I can use a wizard when generating a new indicator - but thats answering lots of questions re input values etc. I am not sure about either.
              I can "generate" MyCustomIndicator from Tools-NewNinjaScript as a generic startup - but I did not find how to rename that one to a specific name - as a starting point for replacing with the code I have.
              So, basically, I don't want to deploy, I want to import - from an "external" source.

              Comment


                #8
                Can you ask the author of the sources to export them into a zip?
                RayNinjaTrader Customer Service

                Comment


                  #9
                  If there was no other way ???

                  Comment


                    #10
                    There is another way but not one we support.

                    You can try copying the indicator file to My Documents\NinjaTrader 6.5\bin\Custom\indicator

                    Then try and open and compile it. If it works great, if not, reverse the procedure by deleting the file.
                    RayNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by vantojo, Today, 01:39 PM
                    0 responses
                    15 views
                    0 likes
                    Last Post vantojo
                    by vantojo
                     
                    Started by Rubens_2020, Today, 01:48 PM
                    1 response
                    10 views
                    0 likes
                    Last Post NinjaTrader_Kate  
                    Started by kempotrader, Today, 01:34 PM
                    1 response
                    23 views
                    0 likes
                    Last Post NinjaTrader_ChrisL  
                    Started by bc24fl, Today, 01:50 PM
                    1 response
                    10 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by bosajin, 01-21-2021, 09:15 AM
                    7 responses
                    60 views
                    0 likes
                    Last Post NinjaTrader_PaulH  
                    Working...
                    X