Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

programming errors

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

    programming errors

    Hello fellow traders,

    if I try to import a ninja script I get the message that there is a script that contains programming errors. How can I find out which one it is and how can I eleminate it?

    Thany you for an answer
    Regards
    Carl

    #2
    Hi joker23,

    The error indicates your current NinjaScript files contain errors, which need to resolved first before you can import new NinjaScript files.

    Please follow the instructions below to see where the errors are coming from after compiling any indicator or strategy. This will allow you to debug the indicator/ strategy or remove it from your PC. If you’re wondering why you receive an error when compiling only one indicator or strategy, it is because NinjaTrader compiles all indicators and strategies. Not just one.

    1) Open NinjaTrader
    2) From the Control Center -> Tools -> Edit NinjaScript -> Indicator
    3) Select an indicator and double click on it.
    4) A new window will appear and you will need to right click and compile the indicator.
    5) At the bottom of the window a new section will appear were you can find the error locations. Double click the error and you will be directed to the location of the error.
    6) From there you have the option to remove the indicator or debug it. You can delete NinjaScript files via Tools-->Edit NinjaScript-->Indicator/Strategy, highlight it and select Delete

    You can find general debug information at the link below.


    In addition, you can try the following workaround as well. Note that you will lose all custom and third party NinjaScript files.

    Create a backup file with 'NinjaScript files' unchecked.


    Uninstall NinjaTrader via the Windows Control Panel-->Add/Remove Programs (XP), Programs and Features (Vista).

    Delete the My Documents-->NinjaTrader 6.5 folder. Do not delete the NinjaTrader backup folder.

    Clear your browser cache and download and install NinjaTrader 6.5 at the link below.


    Restore your settings and you should be able to import new NinjaScript files again.
    TimNinjaTrader Customer Service

    Comment


      #3
      Thanks a lot for helping me so quickly. If its a matter of interest for you, my homepage is:

      www.thetradewarrior.de

      Carl

      Comment


        #4
        Same Issue. Any Updated Info

        Hello,

        I have the same issue, but haven't downloaded any indicators and the links below no longer work. Any updated info you could provide?
        Thanks,

        Comment


          #5
          Are you able to compile your indicators from the NinjaScript editor?

          1. Open NinjaTrader
          2. From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
          3. 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).
          4. A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
          5. At the bottom of the window a new section will appear where you can find the error locations.
          6. 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.

          This should tell you where the errors are coming from.

          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
          MatthewNinjaTrader Product Management

          Comment


            #6
            Same Issue. Cannot delete system indicators.

            Thanks for the reply. Yes, I can compile. When I try to delete the indicator, the window tells me it is a system indicator and cannot be deleted. I have multiple system indicators I have never used that are generating generating program errors.

            Thanks for any help.

            Comment


              #7
              24Corners,

              Can you please provide a screenshot of the compile errors that you are receiving?

              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.
              Go the to post, click reply -> Go Advanced -> Click the Paperclip in the top toolbar

              For detailed instructions please visit the following link

              http://take-a-screenshot.org/
              Cal H.NinjaTrader Customer Service

              Comment


                #8
                Same Issue. Cannot delete system indicators.

                Here you go...
                Attached Files

                Comment


                  #9
                  24Corners,

                  Please send me a request to support[at]ninjatrader[dot]com
                  Put ATTN Cal in the subject and reference this thread in the body.

                  Thank you for your patience.
                  Cal H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by CortexZenUSA, Today, 12:53 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post CortexZenUSA  
                  Started by CortexZenUSA, Today, 12:46 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post CortexZenUSA  
                  Started by usazencortex, Today, 12:43 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post usazencortex  
                  Started by sidlercom80, 10-28-2023, 08:49 AM
                  168 responses
                  2,265 views
                  0 likes
                  Last Post sidlercom80  
                  Started by Barry Milan, Yesterday, 10:35 PM
                  3 responses
                  12 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Working...
                  X