Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Deletion Issue

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

    Indicator Deletion Issue

    I'm trying to delete an indicator but can't because it is referenced by another. I go to the other and I get error

    'C:\...DoubleMAindicator.cs' cannot be deleted. It is referenced by '.cs'. Please remove this dependancy before deleting this file.

    I would, but what in the heck is the name of the indicator? '.cs' is not the full name.

    #2
    Kentoes, strange I believe the MAV indicator would be normally referenced too in the DoubleMA script, please try deleting this first then.

    As workaround delete the files directly in the indicator folder under MyDocuments\NinjaTrader 6.5 / 7\bin\Custom and then recompile to see where it then throws you an additional referencing issue so you could address it.

    Comment


      #3
      My workaround was to use Windows Explorer to search the Ninja folder in My Documents to find all references to DoubleMAindicator, then delete the files.

      Nevertheless, this is a bug that should be fixed.

      Comment


        #4
        Great you got it working but sorry, I'm not sure which bug you refer to - if a file is referenced you would need to delete the call to the file first, then you could delete the file itself, this is expected.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Great you got it working but sorry, I'm not sure which bug you refer to - if a file is referenced you would need to delete the call to the file first, then you could delete the file itself, this is expected.
          The bug is obviously in the error message, and it still exists in NT 7 when more than one file depends on the one being deleted. I just experienced it today when trying to delete an indicator I wrote. I did this in an attempt to see what the dependencies were, so that I could go through them and change them to a new indicator I wrote.

          The error message is far from helpful: "...cannot be deleted. It is referenced by '.cs'. Please remove this dependency before deleting this file." I already know there are dependencies. I'd like to know where they are. Even if the error message named just one file, that would be helpful. The error message works correctly if there is only one dependency; in that case the dependent file is named.

          One workaround is to edit the indicator and change the number of input parameters (just delete one from the Properties region), then recompile. Then the editor window will show orange "no overload method" error messages showing all the places (indicators and strategies) dependent on it.

          -Alex

          Comment


            #6
            Thanks much for the input Alex, enhancing the error message given is on our feedback list, I will make sure your thoughts and vote get counted in, too for future consideration.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X