Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can i remove an indicator with compile errors?

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

    How can i remove an indicator with compile errors?

    Hi,
    i compiled a custom indicator and there are some errors. I want to remove this indicator but can't, an error occurs "...first remove or resolve indicators with errors...". I remove it manually but no luck. Can't imprt or whatever also. What can i do other ?

    #2
    mate41,

    When you said you manually removed it, do you mean you deleted the source file?

    At this point when you compile your indicators, what errors are displayed at the bottom? Are the errors in orange or yellow? What indicator is reporting the error?
    MatthewNinjaTrader Product Management

    Comment


      #3
      Ok, i cut it from the indicator list and past it on another place as a save for later. I can't reproduce it now but here it is:
      Attached Files

      Comment


        #4
        Mate41,

        I'm sorry, if you removed this indicator this is likley not causing issues.

        Can you please recompile the current set of indicators and tell me what errors are reported?
        MatthewNinjaTrader Product Management

        Comment


          #5
          Matthew,
          i deleted the file from the list:...\Documents\NinjaTrader 7\bin\Custom\Indicator
          But it seems that file is still known somewhere else. This way i've always whatever i do the message "..to solve the compile errors before.." i can continue.
          For example when i try to import a script.

          Comment


            #6
            Yes, I completely understand. You cannot import a script due to compile errors. We need to determine where these compile errors are coming from.

            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 compiles all indicators and strategies- not just one.
            • Open NinjaTrader
            • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
            • Select an indicator and double click on it.
            • 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 were you can find the error locations.
            • Please respond with these errors.


            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.
            For detailed instructions please visit the following link
            MatthewNinjaTrader Product Management

            Comment


              #7
              Thanks, here is a screenshot:
              I restored this file in the directory but when i try to delete it from the editer i've this message:
              "can't be deleted. This file is likely referenced by other NinjaScript files and the dependencies need to be removed first."
              Attached Files
              Last edited by mate41; 09-01-2011, 08:49 AM.

              Comment


                #8
                Hello,

                If you're unable to determine which indicators are being referenced here, please try the following steps to reinstall NinjaTrader without your 3rd party add-ons. Note that you will lose all custom and third party NinjaScript files.

                1) Create a backup file with 'NinjaScript files' unchecked.
                http://www.ninjatrader.com/support/helpGuides/nt7/index.html?creating_a_backup_archive.htm
                2) Uninstall NinjaTrader via the Windows Control Panel-->Add/Remove Programs (XP), Programs and Features (Vista/7).
                3) Delete the My Documents-->NinjaTrader 7 folder. Do not delete the NinjaTrader backup folder.
                4) Clear your browser cache and download and install NinjaTrader at the link below.
                http://www.ninjatrader.com/webnew/download_download.htm
                5) Restore your settings and test again for further issues.


                MatthewNinjaTrader Product Management

                Comment


                  #9
                  Thanks, NT is reinstalled and restored. My indator source is saved in an other place, how can i resume editing ?

                  Comment


                    #10
                    mate41,

                    If you are comfortable working with files in windows, you can manually import this file.


                    Please navigate to (My) Documents\NinjaTrader 7\bin\Custom\Indicator and save the .CS File in this directory.


                    Next, you will need to compile the indicator and check for errors.


                    Please follow the instructions to compile the indicator. Please note that you will not see your new indicator listed until after you compile your indicators. You will first need to select an existing indicator and compile these from there. This is because NinjaTrader compiles all indicators and strategies- not just one.
                    • Open NinjaTrader
                    • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
                    • Select an indicator and double click on it.
                    • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
                    • If no errors appear, the import should be complete.

                    Let me know if this does the trick for you.
                    MatthewNinjaTrader Product Management

                    Comment


                      #11
                      I've got an error 1501.
                      And this is line 44:
                      if (CrossAbove(RSI(12),70,1))
                      Plot1.Set(DrawTriangleUp("tag1", true, 0, Low[0] - TickSize, Color.Green));
                      Last edited by mate41; 09-01-2011, 11:52 AM.

                      Comment


                        #12
                        Hello,

                        You would not be able to add a draw object as a plot. The plot should be data series or other study values.

                        If you'd just like to have this drawn on the chart at this time, please try using the following

                        Code:
                        if (CrossAbove(RSI(12),70,1))
                                        DrawTriangleUp("tag1", true, 0, Low[0] - TickSize, Color.Green);
                        MatthewNinjaTrader Product Management

                        Comment


                          #13
                          Matthew, stiil an error : "no overload for method 'RSI' takes '1' arguments" error 1501.
                          Now solved: the RSI(12,2) have 2 arguments. Let see what happen now on the chart.
                          Last edited by mate41; 09-01-2011, 12:48 PM.

                          Comment


                            #14
                            Great, glad to hear you were able to resolve that second error.

                            Please let me know if there is anything else I can do for you.
                            MatthewNinjaTrader Product Management

                            Comment


                              #15
                              Yes Thanks,
                              nothing happen at now. I want a little triangle below the bar if overbougt and idem above the bar if oversold.
                              This is my script:
                              Last edited by mate41; 09-02-2011, 06:41 AM.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              597 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              343 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              556 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              555 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X