• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Import zip error

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

    Import zip error

    Hello. I export some strategies and indicators from NT on my notebook, than used it on PC, than export from PC NT to zip as always. There was no error. So, I tried to import zip to notebook NT, but some error occurs. After that I tried to import zip again, but now NT is reporting "you can't import because there are some errors in some of your NT scripts". But I can't do anything, because files are in zip. So, this error corrupt script's files and now I even can't import from zip.

    #2
    Hi alexstox,

    Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.
    • Open NinjaTrader
    • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
    • Select any indicator and double click on it (we need only to open and compile one script to see all compile errors for all files).
    • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
    • At the bottom of the window a new section will appear where you can find the error locations.
    • From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.


    If you are unsure as to what the error is indicating, please send me a screenshot of the error with the error column fully expanded so that I may read the entire error message.

    To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums -http://www.ninjatrader.com/support/f...ead.php?t=4678

    Please let me know if you would like assistance resolving the error.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Dear ChelseaB, I know very well about compiling and what you wrote.
      1) Everything was OK before trying to import
      2) This import was with some error --> after that some indicators and strategies are missing from "Tools-Edit NTscript" list --> this lead to errors in others strategies that still present in list and refer to those indicators.
      3) I can't try to import again because of 2)

      Comment


        #4
        Hi alexstox,

        Does this mean that you have compiled again and there are no errors?

        If so, this means that you can import. There may be something causing that particular script to not import such as duplicates.

        I'd like you to try importing a simple indicator to show that there are not compile errors.
        http://www.ninjatrader.com/support/f...php?linkid=472

        After this imports successfully, try importing the script you are wanting to import again. If a message appears, please take a screenshot of this and attach the screenshot to your next post.

        To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

        For detailed instructions please visit the following link
        http://take-a-screenshot.org/
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Please comment, I've found problem. There is copy of strategy in NT list - MyStartegy1, that used some indicators MyInd1, Myind2 ... And original strategy used those indicator too. So, I tried to import this original strategy from zip. And now I did that only after deleting MyStrategy1 from NT strategy list. Why?

          Comment


            #6
            Hello alexstox,

            Are these assembly files that have the code protected?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_ChelseaB View Post
              Hello alexstox,

              Are these assembly files that have the code protected?
              Sorry, don't understand.
              Let me explain again.

              There are MyStrategy, MyStrategy1 (copy), MyIndicator1, MyIndicator2.
              I work on 2 machines: notebook and PC.

              So, from note I export MyStrategy, MyIndicator1, MyIndicator2. Than import to PC NT.
              After some work I export those scripts from PC and tried to import to notebook NT.
              In the end of import NT reported about some error in importing.
              When I tried to import zip again, NT reported about "please resolve errors in scripts that already in NT". After compiling I saw that all errors from MyStrategy1 (copy). And only after deleting it I imported zip with no errors.

              Comment


                #8
                Hello alexstox,

                Typically this means that the scripts are sharing namespaces. In other words there are either custom namespaces that you have created that are in both files which cause duplicate namespace errors.

                Or this could mean that you have two scripts that have the same name and this will also cause errors.

                If I could see the files, I could tell you what the issue is. If you are willing to share these scripts you can post them. Or you could send me them privately.

                You can also also find the issue by manually placing all files in the NinjaTrader settings folder and then compile. This will tell you exactly what files have errors and what the errors are such as the exact namespace that is a duplicate.
                Chelsea B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Bionian, Today, 10:10 AM
                2 responses
                17 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by D Trader, Today, 01:41 PM
                0 responses
                8 views
                0 likes
                Last Post D Trader  
                Started by rexmie888, Today, 04:00 AM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by terminatorT1000, Today, 01:23 AM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by Tradarr, Today, 12:25 PM
                0 responses
                10 views
                0 likes
                Last Post Tradarr
                by Tradarr
                 
                Working...
                X