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.
If you’re installing an update to an indicator, NinjaTrader will sometimes allow you to install it on top of an existing indicator without an issue. But sometimes, NinjaTrader gives you a warning or error about duplicate names or a similar error. For example, you may see this error:
In this case, 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 panel (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 email@example.com and we'll provide further assistance to correct the issue.