But I am attaching just the CS Files below
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Compiled Assembly Importing Help
Collapse
X
-
Hello Vikuno1,
Thanks for your notes.
I have tested exporting the TestEnums, TestIndicator, and TestAnalyzerColumn scripts and I was able to export all three DLLs successfully and reimport them into the platform successfully.
First, export the TestEnums file as a DLL. Then, exclude the TestEnums script, TestIndicator script, and TestAnalyzerColumn script from compilation.
Import the TestEnums DLL file. Uncheck the 'Exclude from compilation' option for the TestIndicator and TestAnalyzerColumn scripts so that they are included in compilation.
Export the TestIndicator script as a DLL with a reference to the TestEnums DLL. Exclude the TestAnalyzerColumn file and the TestIndicator file from compilation. Import the TestIndicator DLL file.
Then, uncheck the 'Exclude from compilation' option for the TestAnalyzerColumn file so it is included in compilation. Export the TestAnalyzerColumn script as a DLL with a reference to the TestEnums DLL and a reference to the TestIndicator DLL.
Exclude the TestAnalyzerColumn script from compilation and import the TestAnalyzerColumn DLL.
See this demonstration video: https://brandonh-ninjatrader.tinytak...M18yMjAyNDI5MwBrandon H.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_BrandonH View PostHello Vikuno1,
Thanks for your notes.
I have tested exporting the TestEnums, TestIndicator, and TestAnalyzerColumn scripts and I was able to export all three DLLs successfully and reimport them into the platform successfully.
First, export the TestEnums file as a DLL. Then, exclude the TestEnums script, TestIndicator script, and TestAnalyzerColumn script from compilation.
Import the TestEnums DLL file. Uncheck the 'Exclude from compilation' option for the TestIndicator and TestAnalyzerColumn scripts so that they are included in compilation.
Export the TestIndicator script as a DLL with a reference to the TestEnums DLL. Exclude the TestAnalyzerColumn file and the TestIndicator file from compilation. Import the TestIndicator DLL file.
Then, uncheck the 'Exclude from compilation' option for the TestAnalyzerColumn file so it is included in compilation. Export the TestAnalyzerColumn script as a DLL with a reference to the TestEnums DLL and a reference to the TestIndicator DLL.
Exclude the TestAnalyzerColumn script from compilation and import the TestAnalyzerColumn DLL.
See this demonstration video: https://brandonh-ninjatrader.tinytak...M18yMjAyNDI5Mw
The only things that seem different are the version of Ninja (I am 8.0.28, Looks like you may be 8.1) and your enum reference was listed as an AddOn not an indicator. Also my indicator and enum are both in a folder in the indicator folder.
Let me know if I am doing something wrong, or I can send a video of the process I am doing.
Sorry this is taking so long, appreciate the help!
Comment
-
Hello Vikuno1,
Thanks for your notes.
I have tested this on a new installation of NinjaTrader 8.0.28.0. I added the TestEnums file and TestIndicator file you had shared into a subfolder in the Indicators folder as you noted. The TestAnalyzerColumn file you shared is in the MarketAnalyzerColumn folder in the Editor.
The scripts exported and imported successfully without error.
First, export the TestEnums file as a DLL. After exporting the TestEnums file as a DLL, exclude the TestEnums, TestIndicator, and TestAnalyzerColumn files from compilation.
Import the TestEnumsDLL file onto the platform. Uncheck the 'Exclude from compilation' option for the TestIndicator file and TestAnalyzerColumn file so they are included in compilation.
Next, export the TestIndicator indicator file as a DLL and make sure the add a reference to the TestEnumsDLL in your export. Exclude the TestIndicator file and TestAnalyzerColumn file from compilation.
Import the TestIndicatorDLL file onto the platform. Uncheck the 'Exclude from compilation' option for the TestAnalyzerColumn file so it is included in compilation.
Export the TestAnalyzerColumn file as a DLL and make sure to add a reference to the TestEnumsDLL and TestIndicatorDLL in your export. Exclude the TestAnalyzerColumn file from compilation.
Import the TestAnalyzerColumnDLL onto the platform.
See this demonstration video: https://brandonh-ninjatrader.tinytak...NF8yMjAyNTU1NQ
If you are still seeing errors occur after following the exact same steps seen in the demonstration video linked above, please send a demonstration video showing the exact steps you are taking.Brandon H.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_BrandonH View PostHello Vikuno1,
Thanks for your notes.
I have tested this on a new installation of NinjaTrader 8.0.28.0. I added the TestEnums file and TestIndicator file you had shared into a subfolder in the Indicators folder as you noted. The TestAnalyzerColumn file you shared is in the MarketAnalyzerColumn folder in the Editor.
The scripts exported and imported successfully without error.
First, export the TestEnums file as a DLL. After exporting the TestEnums file as a DLL, exclude the TestEnums, TestIndicator, and TestAnalyzerColumn files from compilation.
Import the TestEnumsDLL file onto the platform. Uncheck the 'Exclude from compilation' option for the TestIndicator file and TestAnalyzerColumn file so they are included in compilation.
Next, export the TestIndicator indicator file as a DLL and make sure the add a reference to the TestEnumsDLL in your export. Exclude the TestIndicator file and TestAnalyzerColumn file from compilation.
Import the TestIndicatorDLL file onto the platform. Uncheck the 'Exclude from compilation' option for the TestAnalyzerColumn file so it is included in compilation.
Export the TestAnalyzerColumn file as a DLL and make sure to add a reference to the TestEnumsDLL and TestIndicatorDLL in your export. Exclude the TestAnalyzerColumn file from compilation.
Import the TestAnalyzerColumnDLL onto the platform.
See this demonstration video: https://brandonh-ninjatrader.tinytak...NF8yMjAyNTU1NQ
If you are still seeing errors occur after following the exact same steps seen in the demonstration video linked above, please send a demonstration video showing the exact steps you are taking.
https://www.loom.com/share/f189ffb76652449f886ce958751fc300?sid=cde476d3-1e48-460f-b6cf-a1e2668a5ed6 zz0.yv8vw8vjpdrzz
Comment
-
Hello Vikuno1,
Thanks for your notes.
To ensure that you are using the same exact scripts as I am and that no third-party add-ons are affecting the test, please create a clean environment by following the steps below.
Then, follow the exact same steps in order that are seen in the demonstration video I shared in post # 19 using the scripts attached to this post.
Creating a clean environment can be done by following the steps below:- Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
- Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from account.ninjatrader.com
- Add the required scripts and test the same exact steps seen in the demonstration video on post # 19.
If you ever need to switch back to your original platform, you may do so by closing NinjaTrader and swapping the platform folder names.
For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.Brandon H.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_BrandonH View PostHello Vikuno1,
Thanks for your notes.
To ensure that you are using the same exact scripts as I am and that no third-party add-ons are affecting the test, please create a clean environment by following the steps below.
Then, follow the exact same steps in order that are seen in the demonstration video I shared in post # 19 using the scripts attached to this post.
Creating a clean environment can be done by following the steps below:- Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
- Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from account.ninjatrader.com
- Add the required scripts and test the same exact steps seen in the demonstration video on post # 19.
If you ever need to switch back to your original platform, you may do so by closing NinjaTrader and swapping the platform folder names.
For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.
Comment
-
Hello Vikuno1,
Thanks for your notes.
To determine which third-party addon is causing the error message to occur, you would need to add each third-party addon to the clean environment one by one and test after importing each addon to see if the behavior occurs after adding a third-party addon.
Once you add a third-party addon to the platform, test for the behavior, and see the behavior occur, it is likely that the last third-party addon added to the platform is causing the behavior to occur.Brandon H.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_BrandonH View PostHello Vikuno1,
Thanks for your notes.
To determine which third-party addon is causing the error message to occur, you would need to add each third-party addon to the clean environment one by one and test after importing each addon to see if the behavior occurs after adding a third-party addon.
Once you add a third-party addon to the platform, test for the behavior, and see the behavior occur, it is likely that the last third-party addon added to the platform is causing the behavior to occur.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,406 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
98 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
8 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
160 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
9 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment