NexusFi: Find Your Edge


Home Menu

 





How-to remove .dll files from NinjaTrader


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one PandaWarrior with 3 posts (0 thanks)
    2. looks_two COTtrader with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 David_R with 1 posts (0 thanks)
    1. trending_up 5,816 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

How-to remove .dll files from NinjaTrader

  #1 (permalink)
 
PandaWarrior's Avatar
 PandaWarrior 
In the heat
 
Experience: None
Posts: 3,165 since Mar 2010
Thanks Given: 6,329
Thanks Received: 13,405

how do I remove an NT .dll file if I get an error that says the file is in use or the disk is write protected...neither of which is true...I got an error saying I had the same .dll in the custom folder and had to remove one of them before I could import anything.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
22 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #3 (permalink)
 
David_R's Avatar
 David_R 
San Jose, Ca
Legendary Market Wizard
 
Experience: Beginner
Platform: Ninja
Broker: AMP/CQG
Trading: Something moving
Posts: 1,582 since Nov 2009
Thanks Given: 2,335
Thanks Received: 2,524



PandaWarrior View Post
how do I remove an NT .dll file if I get an error that says the file is in use or the disk is write protected...neither of which is true...I got an error saying I had the same .dll in the custom folder and had to remove one of them before I could import anything.


I forget which pulldowns, and I'm not sure if this is correct, but it might be where can remove the assembly. Utilities ....remove assembly and pick the one you want. That is all I can think off, but not sure. Sorry.
Big help, Huh?

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
PandaWarrior's Avatar
 PandaWarrior 
In the heat
 
Experience: None
Posts: 3,165 since Mar 2010
Thanks Given: 6,329
Thanks Received: 13,405


David_R View Post
I forget which pulldowns, and I'm not sure if this is correct, but it might be where can remove the assembly. Utilities ....remove assembly and pick the one you want. That is all I can think off, but not sure. Sorry.
Big help, Huh?

tried that...i get the error that says I have script with programming errors....so back to the bin/custom folder and how to remove the .dll files

Simplicity is the ultimate sophistication, Leonardo da Vinci


Most people chose unhappiness over uncertainty, Tim Ferris
Started this thread Reply With Quote
  #5 (permalink)
 
Beljevina's Avatar
 Beljevina 
Toronto, Canada
 
Experience: Advanced
Platform: NinjaTrader, SierraCharts
Broker: Amp/CQG, IB
Trading: CL, GC, 6E, ES, RTY, EURUSD, GBPJPY, AUDUSD
Posts: 352 since Sep 2010


PandaWarrior View Post
how do I remove an NT .dll file if I get an error that says the file is in use or the disk is write protected...neither of which is true...I got an error saying I had the same .dll in the custom folder and had to remove one of them before I could import anything.

Bring up any indicator for editting (Tools->Edit Ninjascript-> and pick one). With the indi code edit window up, right click and choose REFERENCES, highlight the DLL and click DELETE. If you can get that far, you may have to choose COMPILE from the menu, to recompile the existing indi on your screen (which you have not made changes to), to get NT "co-operative" again.

If you get errors from within that window, when you choose COMPILE (having made no changes to the indi you brought up), the very bottom of the window should show you which indicator NT feels is problematic.

If some of that works (or none), I often just exit NT, and remove the offending *.cs file; I think you can do the same with the DLL after having exited NT; not sure it should complain when you restart, but, a combination of those steps will almost always get you out of the loop.

Follow me on Twitter Reply With Quote
  #6 (permalink)
 
PandaWarrior's Avatar
 PandaWarrior 
In the heat
 
Experience: None
Posts: 3,165 since Mar 2010
Thanks Given: 6,329
Thanks Received: 13,405


Beljevina View Post
Bring up any indicator for editting (Tools->Edit Ninjascript-> and pick one). With the indi code edit window up, right click and choose REFERENCES, highlight the DLL and click DELETE. If you can get that far, you may have to choose COMPILE from the menu, to recompile the existing indi on your screen (which you have not made changes to), to get NT "co-operative" again.

If you get errors from within that window, when you choose COMPILE (having made no changes to the indi you brought up), the very bottom of the window should show you which indicator NT feels is problematic.

If some of that works (or none), I often just exit NT, and remove the offending *.cs file; I think you can do the same with the DLL after having exited NT; not sure it should complain when you restart, but, a combination of those steps will almost always get you out of the loop.


Had to restart NT but it worked...thanks...

Simplicity is the ultimate sophistication, Leonardo da Vinci


Most people chose unhappiness over uncertainty, Tim Ferris
Started this thread Reply With Quote
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


PandaWarrior View Post
Had to restart NT but it worked...thanks...

There are 2 ways to remove a .dll file.

(1) If possible remove it via File -> Utilities -> Remove NinjaScript Assembly

(2) If (1) does not work, then edit any indicator via Tools -> Edit NinjaScript -> Indicator. Then compile at have a look at the error messages. The error messages will indicate the offending files. Delete all offending indicators.

(3) If there are some offending assemblies, you can remove them manually. To remove an assembly manually, first shut down NinjaTrader. Then open the folder My Documents -> NinjaTrader 7 -> bin -> Custom. For each of the assemblies you will find 4 files with identical names but different extensions. The extensions are .cs, .dll, .X64.dll and .X86.dll. Delete all 4 files of the offending assembly. After deletion restart NinjaTrader and then edit any indicator. Right click with the mouse on the open indicator, select references and then delete the references to the assemblies, which you have removed before.

(4) After removing the references press F5 to compile. If you get anymore error messages repeat step 3 until your installation is clean.

Reply With Quote
Thanked by:
  #8 (permalink)
 
COTtrader's Avatar
 COTtrader 
JACKSON, MICHIGAN
Legendary Market Wizard
 
Experience: Intermediate
Platform: TS and Trading View
Broker: TS
Trading: ES Awesome!
Posts: 955 since Jul 2009
Thanks Given: 406
Thanks Received: 648

This method may or may not work but it is an alternative should all else fail ...

See NT's website - Can't Get Rid of Reference - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum. A reply from a 'senior member' suggests the following -


Then you may have no choice but to use the shotgun/sledgehammer approach.

1. File --> Utilities --> Remove NinjaScript Assembly --> (if it is still showing), then click and remove.

2. If still no joy, then Close NT; rename and move NinjaTrader.Custom.dll and NinjaTrader.Custom.xml; restart NT.

("Rename and move", so that you can go back if you decide that the sledgehammer was too much ).

COTtrader
"Ken"

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on October 1, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts