Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Invalid File Reference After 3rd Party Uninstall

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

    Invalid File Reference After 3rd Party Uninstall

    Greetings Folks,

    I recently uninstalled a 3rd party application that uses NinjaTrader Strategies. After the uninstall, I attempted to compile an indicator of my own (a very simple modification of the VMA indicator that comes with Ninja). Upon compilation, I received an error message that suggests that a script within the Ninja space is referring to the removed 3rd party dll. However, I cannot create code that successfully refers to the 3rd party code, as I have no knowledge of the 3rd party's object model or any exposed methods or attributes. Something appears to be corrupt in the dependencies, and I'm wondering how to wipe the slate clean so I can once again compile my own scripts. Please find an image of the code window with the error message attached.

    Thanks!

    Jim
    Attached Files

    #2
    if its a compile error you may want to inspect ..\Documents\NinjaTrader 7\bin\Custom and see if there are any files the third part may have installed there. It may simply be as easy as deleting the .cs file that should not be included in the compile.

    Comment


      #3
      Hello Jambo,

      It is most likely you have a reference to the third party indicator still loaded into NinjaTrader. You can fix this by doing the following:

      In Control Center menu bar go to Tools > Edit Ninjascript > Indicator
      In the indicator dialog select any indicator and click on the 'Ok' button.
      This will open the Ninjascript editor for you:

      Right click in the code section of the Ninjascript editor.
      In the context menu click on 'References'
      In the Reference dialog, select each of the third party DLL files that go along with what you uninstalled and click remove

      Once you have removed all of the references to the uninstalled third party indicator you can click ok then try to recompile and you should receive no errors.

      Here is a video for reference of the above steps.



      Please let me know if I may be of further assistance

      Comment


        #4
        Thanks for the suggestion, newworldguy, but I'm not seeing any .cs files under the bin/Custom directory that appear associated with the 3rd party system.

        Comment


          #5
          Thanks very much, Jesse. That did the trick!

          Comment


            #6
            then try what Patrick suggested:

            Right click in the code section of the Ninjascript editor.
            In the context menu click on 'References'
            In the Reference dialog, select each of the third party DLL files that go along with what you uninstalled and click remove

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            637 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            366 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            107 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            569 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            571 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X