• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.

      http://www.ninjatrader.com/support/m...yReference.mp4

      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 motog4, Today, 11:42 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by derivtrader, Today, 11:20 AM
            2 responses
            11 views
            0 likes
            Last Post derivtrader  
            Started by TAJTrades, Today, 10:34 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by timcjpfx, Today, 10:20 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Eloi_, Today, 09:48 AM
            2 responses
            10 views
            0 likes
            Last Post Eloi_
            by Eloi_
             
            Working...
            X