If you’re installing a new indicator or an update to an indicator, NinjaTrader sometimes gives you an error about duplicate names or a similar error. For example, you may see something like this:
We believe this error may be caused by Microsoft OneDrive competing with the NinjaTrader 8 program, both of which are simultaneously trying to access the Documents folder in new and even older PCs. If you know you have OneDrive backing up your Documents folder, or you're not sure, it would be worthwhile to review the details at this link and perhaps consider preventing OneDrive from backing up your Documents folder if you're a NinjaTrader user. You may continue to experience issues until the core issue is resolved. The following solution may work temporarily for you, but again, you may experience other issues if OneDrive continues to compete with your NinjaTrader installation.
Manually moving the files into the My Documents NT 8 folder
The first thing to try is to manually install the files in the indicator zip file. Please read the following description on how to do this, and optionally watch the short video that demonstrates the steps.
First, close NinjaTrader. Then manually unzip the zip file, and drag the new files from the uncompressed zip file into the correct folder in your My Documents folder (do NOT move it to the Program Files folder). To do this, locate the .zip file you downloaded. Right-click on the file and select Extract all... . Allow the zip file to be expanded. Find the .cs and .dll files in the expanded file folder. Drag both of those into your My Documents / NinjaTrader 8 / bin / Custom directory. Restart NinjaTrader 8 and your indicator should be available.
The following video demonstrates the unzipping and how to move the files to the NT8 folder in your My Document folder structure. If following this approach doesn't allow you access to the indicator, try the steps provided in the next section.
Note: If you've installed one of the special Live Trading Room (LTR) Bundles that contain several BCT indicators in a single installation, see the final paragraph of this article.
Removing Previous Installations
If the manual procedure doesn't work, then you may need to remove the old version of the code before installing the new one.
To remove an old indicator, open the NinjaTrader Control Center (the NinjaTrader primary control window) and select Tools / Remove NinjaScript Assembly… as shown here:
A dialog box will appear with a list of your installed indicators. Select the indicator that you want to remove from NinjaTrader, and then select the Remove button, as shown here:
NinjaTrader will remove that indicator and its associated code. You’ll see a confirmation dialog, which you can close, and then you may close the Remove NinjaScript Assembly window. You can now install the new update or new indicator.
Note that when you do this, you may affect any indicator-specific templates that were added for the old indicator, so you may need to define those again. Sometimes the order of plots change in an indicator update, and in that case, the old template won’t work properly with the new version. So if the new version looks like something is amiss, use the "reset" function of the template to have it reset back to default, then adjust it as needed.
If removing the indicator and reinstalling doesn't work
If you removed the indicator and then reinstalled it and you're still getting a duplicate name error, then it's likely related to internal coding issues. This can occur when you're installing a number of indicators contained in a single .zip file, sometimes called a bundle. If you install the individual versions of your indicator(s) rather than using a bundle, the error may be avoided. The solution for this usually involves identifying and removing the indicators that are creating the conflict, usually in the custom indicator directories within the NinjaTrader user directory. Contact BCT support at support@basecamptrading.com and we'll provide further assistance to correct the issue.
If you would prefer to try to resolve this yourself, you can follow the steps in the following link. The approach would be to move all of your 3rd-party .cs and .dll files into a separate folder, then recompiling one of NinjaTrader's provided indicators. If you don't get an error, add in one of the indicators you temporarily removed by putting it back in the original directory, and then recompiling the same indicator you compiled the first time (NT checks all indicators when you compile any one of them). If there's no error, then move on to the next one, etc., until you find one that fails. The one that fails may be the culprit. These steps are detailed at this link:
support.basecamptrading.com/hc/en-us/articles/4408322781979-How-do-I-resolve-the-NinjaTrader-error-You-have-custom-Ninjascript-files-on-your-PC-that-have-programming-errors-
Comments
0 comments
Article is closed for comments.