I am reaching out to report an issue I've encountered since updating to the latest version of NinjaTrader, version 8.1.2.1. Following the update, I attempted to export my custom code and encountered errors that prevented the export process. These errors were not present in the previous version.
I have made several attempts to resolve these errors within my codebase without success. As a troubleshooting step, I reinstalled NinjaTrader, renaming the documents folder to "NinjaTrader 8 OLD" in accordance with instructions from an existing forum post, and performed a fresh installation of the platform.
Note: I have tried installing a previous version (8.1.1.6) i had in my downloads folder and importing in this version as well but this did not work.
Afterward, my partner successfully exported his custom code using the "Tools -> Export -> NinjaScript Add-on" function. However, when I attempted to import the exported files into my system, I encountered an import failure error. The error message suggests that the NinjaScript Archive File may contain duplicate method names, might modify a method signature that other scripts depend on, or could be missing a required file (please refer to the attached image for the exact error message).
In an effort to isolate the issue, I removed entire categories of .cs files and attempted reimporting, but the error persisted. It was only when I significantly reduced the contents of my archive file, focusing on a specific .cs file and altering parts of its code, that I discovered the namespace might be the root of the problem. However, even after removing this particular script from the original archive file, I was still faced with the same error upon import.
Prior to the update, I had not experienced any difficulties with exporting and importing my files. The recent issues seemed to have arisen after the new update and the addition of two interconnected classes (a strategy and an addon class that serves as an extension) to my code.
Could you please provide guidance on how to resolve these import errors? I rely heavily on the ability to import and manage my extensive collection of custom strategies and addons, and this problem is significantly impacting my workflow.
Thank you for your prompt attention to this matter. I am looking forward to your assistance in resolving these import issues.
Best regards, Aviram Y.
Comment