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

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
      JesseNinjaTrader Customer Service

      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 Aviram Y, Today, 05:29 AM
            4 responses
            11 views
            0 likes
            Last Post Aviram Y  
            Started by algospoke, 04-17-2024, 06:40 PM
            3 responses
            27 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by bmartz, 03-12-2024, 06:12 AM
            3 responses
            31 views
            0 likes
            Last Post bmartz
            by bmartz
             
            Started by gentlebenthebear, Today, 01:30 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by cls71, Today, 04:45 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X